Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PKCS8 PrivateKey decrypt

843811May 5 2005 — edited Feb 22 2007
Hi there

I have a Private key which has been selected from an ldap directory, which is in a byte[] and is encrypted with a password in the PKCS8 format.

Is it possible for me to decrypt the key with the bouncy castles PEMReader, I'm not sure how to do this, every time I read the Object it comes back null, if anyone has any examples of this, please post them.

On another note, maby the PEMReader is not the way to go, I'm a bit lost to tell you the truth.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2007
Added on May 5 2005
3 comments
6,240 views