34

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

030
  • 5,901
  • 13
  • 68
  • 110
Fela Maslen
  • 1,243
  • 2
  • 12
  • 19

1 Answers1

77

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,214
  • 7
  • 22
  • 46
mulaz
  • 10,682
  • 1
  • 31
  • 37