How to extract public key ?
843811Mar 1 2007 — edited Mar 21 2007I 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.