Extract private key from .cer to .pem using openssl

How can I export the private key embedded in the .cer file and convert it to .pem using openssl.

Update:

If I download the .cer file from Apple and import it into KeyChain, I can export the private key as a .p12 file. How can I do this using openssl?

alt text
(source: flickr.com )

alt text
(source: flickr.com )

+4
source share
1 answer

Unfortunately, the certificate does not contain the private key (it, however, contains the public key). You will need a private key source (usually .p12) to retrieve the private key.

Hope this helps.

+8
source

All Articles