Ssl – Generate .key and .crt from PKCS12 file

apache-2.2certificateopensslssl

How exactly would I generate a .key file and a .crt file from a .p12 file?

Best Answer

A little googling finds this

Hope it helps

edit: added fixed commands:

openssl pkcs12 -in filename.pfx -nocerts -out filename.key

openssl pkcs12 -in filename.pfx -clcerts -nokeys -out filename.crt 

OpenSSL can be downloaded here: