OpenSSL: Extract Private Key
1. Extract the Private Key
openssl pkcs12 -in yourfile.pfx -nocerts -out private.keyopenssl rsa -in private.key -out private_unencrypted.key2. Extract the Certificate
openssl pkcs12 -in yourfile.pfx -clcerts -nokeys -out certificate.crt3. (Optional) Extract the CA Chain
openssl pkcs12 -in yourfile.pfx -cacerts -nokeys -chain -out ca_bundle.crtbashCopyEditopenssl x509 -in certificate.crt -text -nooutbashCopyEditopenssl x509 -noout -modulus -in certificate.crt | openssl md5
openssl rsa -noout -modulus -in private.key | openssl md5REFERENCES
PreviousExport a Let’s Encrypt SSL Certificate with Private Key via MMC ConsoleNextTomcat: Install Let's Encrypt SSL-Windows
Last updated