If your server/device requires a different certificate format other than Base64 encoded X.509, a third party tool such as OpenSSL can be used to convert the certificates into the appropriate format.
For information on OpenSSL please visit: www.openssl.org
Note: OpenSSL is an open source tool that is not provided by or supported by DigiCert.
This guide only applies to TLS / SSL certificates. Code Signing certificates issued or reissued on or after May 30, 2023, cannot be converted or exported. For more information on Code Signing storage requirements, please see Code signing changes in 2023.
Some common conversion commands are listed below:
openssl x509 -in certificatename.cer -outform PEM -out certificatename.pem
openssl x509 -outform der -in certificatename.pem -out certificatename.der
openssl x509 -inform der -in certificatename.der -out certificatename.pem
openssl crl2pkcs7 -nocrl -certfile certificatename.pem -out certificatename.p7b -certfile CACert.cer
openssl pkcs7 -print_certs -in certificatename.p7b -out certificatename.pem
openssl pkcs12 -in certificatename.pfx -out certificatename.pem
STEP 1: Convert PFX to PEM
openssl pkcs12 -in certificatename.pfx -nocerts -nodes -out certificatename.pem
STEP 2: Convert PEM to PKCS8
openSSL pkcs8 -in certificatename.pem -topk8 -nocrypt -out certificatename.pk8
STEP 1: Convert P7B to CER
openssl pkcs7 -print_certs -in certificatename.p7b -out certificatename.cer
STEP 2: Convert CER and Private Key to PFX
openssl pkcs12 -export -in certificatename.cer -inkey privateKey.key -out certificatename.pfx -certfile cacert.cer