How to get .pem file from .key and .crt files?

后端 未结 10 2045
-上瘾入骨i
-上瘾入骨i 2020-11-22 10:06

How can I create a PEM file from an SSL certificate?

These are the files that I have available:

  • .crt
  • server.csr
10条回答
  •  猫巷女王i
    2020-11-22 10:53

    1. Download certificate from provisional portal by appleId,
    2. Export certificate  from Key chain and  give name (Certificates.p12),
    3. Open terminal and goto folder where you save above Certificates.p12 file,
    4. Run below commands:

      a) openssl pkcs12 -in Certificates.p12 -out CertificateName.pem -nodes,

      b) openssl pkcs12 -in Certificates.p12 -out pushcert.pem -nodes -clcerts

    5. Your .pem file ready "pushcert.pem".

提交回复
热议问题