convert .p7b key to a .pfx

Posted by DrStalker on Server Fault See other posts from Server Fault or by DrStalker
Published on 2009-11-10T04:37:14Z Indexed on 2014/06/09 9:28 UTC
Read the original article Hit count: 374

Filed under:
|
|
|

I have an SSL certificate in .p7b format that I need to convert to .pfx. If I try this through the windows certificate managment the option to expert as a .pfx is disabled.

Trying with openssl I have found the following two commands to do the conversion:

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer

but I'm not sure what key to use for teh esecond command, or what certificate CACert.cer refers to.

How can I convert this key to .pfx format?

© Server Fault or respective owner

Related posts about ssl

Related posts about certificate