34

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

030
  • 6,085
Fela Maslen
  • 1,343

1 Answers1

81

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:

JohnLBevan
  • 1,408
  • 9
  • 28
  • 57
mulaz
  • 10,962