How to extract parse certificates and private keys from PKCS #12 files using OpenSSL
Originally Published: 2009-12-08
Article Number
Applies To
Tasks
Resolution
openssl pkcs12 -in file.p12 -out file.pem
From the OpenSSL PKCS#12 Program Usage page:
This will dump all the keys and certificates in the PKCS#12 file to a file named file.pem. It will ask you for the password to decrypt the PKCS#12 file and the pass phrase to encrypt the output private key with.
Related Articles
How to open TCP/IP ports in RSA Identity Governance & Lifecycle 113Number of Views Error: "The certificate file is not valid." when importing a SMS provider certificate AM8.1 - error importing certificate 128Number of Views Upload Certificates for Trusted Certificate Authorities 48Number of Views SSL connection not verified with peer after importing a new SMS provider certificate for ODA 242Number of Views Enable SSH using the command line on RSA Authentication Manager 8.4 and up 334Number of Views
Trending Articles
RSA Authentication Manager 8.9 Release Notes (January 2026) RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide RSA-2026-07: RSA Authentication Manager Security Update for Third-Party Component Vulnerabilities Downloading RSA Authentication Manager license files or RSA Software token seed records RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide
Don't see what you're looking for?