convert .p7b key to a .pfx
- by DrStalker
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?