Export your Private Key from a .PFX file

First, you will need the OpenSSL binaries:

Next, you will need to use OpenSSL to perform the following commands:

Export the private key file from the pfx file:

openssl pkcs12 -in filename.pfx -nocerts -out key.pem

Export the certificate file from the pfx file:

openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem

Remove the passphrase from the private key:

openssl rsa -in key.pem -out server.key

Was this answer helpful?

 Print this Article

Also Read

Types of SSL Certificates

hostedWithGeeks offers two types of SSL Certificates that you are able to purchase: Domain: This...