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
知识文章编号

000391727

 
正在加载
Salesforce Help | Article