Converting pfx to pem using openssl
How to generate a .pem CA certificate and client certificate from a PFX file using OpenSSL. Jay You can use the OpenSSL Command line tool. The following commands should do the trick openssl pkcs12 -in client_ssl.pfx -out client_ssl.pem -clcerts openssl pkcs12 -in client_ssl.pfx -out root.pem -cacerts If you want your file to be password protected etc, then there are additional options. You can read the entire documentation here . Another perspective for doing it on Linux... here is how to do it so that the resulting single file contains the decrypted private key so that something like HAProxy