Generate .key and .crt from PKCS12 file?

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


Solution 1:

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:

  • source
  • binaries