DigiCert KnowledgeBase - Technical Support-hero

Knowledge Base

How to convert PKCS #7 (.p7b) to PEM certificate format using OpenSSL

Solution ID : SO21448
Last Modified : 11/01/2023

Solution

To convert a PKCS #7 (.p7b) to PEM (Privacy Enhanced Mail) certificate format using OpenSSL, perform the following steps.

 

Obtain OpenSSL

Note: In order for OpenSSL software to be successfully installed on a computer system, you must have local system administrator privilege on the computer.

Download and install OpenSSL to perform a certificate conversion.

 

Convert PKCS #7 (.p7b) to PEM using OpenSSL

Run the following OpenSSL command:

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem

Increase trust in your apps and code with a DigiCert code signing certificate.