spring-attic / spring-security-saml

SAML extension for the Spring Security project
Other
419 stars 482 forks source link

Support PKCS#8 encrypted private key in Saml2KeyStoreProvider #456

Closed Chandra158 closed 4 years ago

Chandra158 commented 4 years ago

Support PKCS#8 encrypted private key in Saml2KeyStoreProvider

Details

X509Utilities.readPrivateKey() currently only supports PEMEncryptedKeyPair. A PKCS8EncryptedPrivateKeyInfo will result into ClassCastException.

Thus, providing the support for type PKCS8EncryptedPrivateKeyInfo.

How has this been tested

Others

pivotal-issuemaster commented 4 years ago

@ProcrastinatorCp Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

pivotal-issuemaster commented 4 years ago

@ProcrastinatorCp Thank you for signing the Contributor License Agreement!

jzheaux commented 4 years ago

Thanks for the PR, @ProcrastinatorCp! This is now merged into develop-3.0.

There are no further releases planned off of develop-3.0, so please fork the project if you need to perform a release.