Convert SSL Certificate


PFX certificates are used to store digital identities and encryption in a file format. Their conversion is necessary to ensure compatibility between different systems. Conversion to other formats such as PEM allows the certificates to be used in a wider range of applications.

Conversion to separate PEM files

Extract private key from a PFX file to a PEM file

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

Remove the password from the extracted private key

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

Export the certificate

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