Convert SSL from pem to pfx

Convert an SSL certificate from Apache pem to IIS pfx format.

Copy the private key and certificate parts, from the PEM to their own files. Then:

openssl pkcs12 -export -out ssl.pfx -in ssl.crt -inkey ssl.key

This gave me a .pfx file i could import into IIS.

If it’s an EV SSL, you can add the CACert by -certfile ssl.cacrt

You can leave a response, or trackback from your own site.

Leave a Reply