Convert P7B to PEM
Free online tool to convert P7B (PKCS#7) certificate files to PEM format using our browser-based tool or OpenSSL/Bash (Linux/Unix) commands.
Convert Online (Browser-Based)
Note: All certificates contained within your input .p7b will be included in the resulting .pem file (in the same order).
Convert Using OpenSSL/Bash (Linux/Unix)
Select the file output option(s) to convert from .p7b:
openssl pkcs7 -print_certs -in certificate.p7b | awk '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/{print; if(/-----END CERTIFICATE-----/) exit}' > certificate.pem
Note: This command extracts only the leaf certificate (no chain certificates) and works with Bash for Linux/Unix only.