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!

How to extract public key ?

843811Mar 1 2007 — edited Mar 21 2007
I have two tools available to me: keytool from the jdk set of executables ($JAVA_HOME/bin/keytool) and openssl. I have used openssl to create a public key certificate and a companion private key. I have successfully used keytool to import the public key certificate into my default keystore ($HOME/.keystore) to establish an entry in the keystore. I need to extract the public key out of the public key certificate (or out of the keystore entry). I need to make the public key (should be about 425 characters) available to those who want to communicate securely with me.

I cannot find a method to do this with keytool nor openssl (the openssl documentation is a little sparse).

Thanks for help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2007
Added on Mar 1 2007
2 comments
283 views