If you have your SSL certificate in p7b format and need to convert to pfx format, you’ll need 3 files.
- The private key you get when generating your CSR
- The p7b certificate file
- The rootca bundle file
Use the following command to generate your pfx certificate.
openssl pkcs12 -export -in p7bcert.crt -inkey private.key -out outfile.pfx -certfile cabundle.crt