Loading

How to convert Certificate (.crt .cer .der) to PEM format?

Udgivelsesdato: Oct 13, 2022
Løsning
Objective:As Demandware requires certificates be PEM or plain text format and some CA (Certificate Authority's) may not provide the right format below are some ways to convert it to an acceptable format.

Environment: Instance Type: All

Procedure: The command below is an example to convert a .cer to a .pem however you can also do the same for a .crt and .der format to pem as well.
  1. Bring up Openssl (command line)
  2. Run the command as below:
  • openssl x509 -inform der -in certificate.cer -out certificate.pem
    
    Example: 
    $ openssl x509 -inform der -in DigiCertSHA2HighAssuranceServerCA.crt -out DigiCertSHA2HighAssuranceServerCA.pem
    
 
 


Additional Info: https://www.sslshopper.com/article-most-common-openssl-commands.html
Vidensartikelnummer

000391727

 
Indlæser
Salesforce Help | Article