Funny, we just had this discussion not too long ago, with someone else.
$ openssl x509 -inform pem -in certificate.pem -pubkey -noout > publickey.pem This is less than completely ideal as it prints the public key out to stdout, but shells can redirect stdout. -Kyle H On 5/6/07, Metalpalo <[EMAIL PROTECTED]> wrote:
Hello everybody, I have question, how can I extract public key from certificate file. It is possible via openssl. I found out only way of extracting from private key file but no from certificate. extracting from private key file: openssl rsa -in privatekey.pem -out publickey.pem -pubout Can somebody help me to resovle this problem Tahnks -- View this message in context: http://www.nabble.com/How-to-extract-public-key-from-Certificate-tf3701970.html#a10352332 Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]
-- -Kyle H ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]