This article describes how to convert a certificate that is received from the Certificate Authority (CA) in PKCS #7 format to PEM format.
This is an alternative method of converting a PKCS #7 Certificates to PEM format, rather than using Open SSL, which sometimes might not work correctly. You receive a certificate from the CA in PKCS #7 [Crypto Graphic message syntax standard] format. The file extension for the certificate is .p7b.
To convert a certificate from PKCS #7 to PEM format, complete the following procedure:
After you receive the certificate from the CA, double-click on the certificate to open it.
When you open the certificate, it appears as shown in the following screen shot:
Locate the path of the certificate on your computer and double-click on the certificate again to open it.
Select the Details tab.
Click Copy to File.
Click Next in the Certificate Export Wizard window.
Select the Base-64 encoded x.509 (.CER) option. This converts the certificate to PEM format.
Click Next.
Click Browse and select a location to store the converted PEM
Click Next.
Click Finish.
After converting the certificate to PEM format, the certificate has an extension .cer.
To verify if the certificate is in PEM format, change the extension to .txt or .doc. The file must start with the line “ BEGIN CERTIFICATE”, as shown in the following screen shot: