Loading

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

게시 일자: Oct 13, 2022
솔루션
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
Knowledge 기사 번호

000391727

 
로드 중
Salesforce Help | Article