Extract PEM (Private Key) & CERT from PFX file


Prerequisite: Login into any Linux based server and make sure it has openssl installed and copied pfx file in some location.

 Run below command to extract the PEM (Private Key).
openssl pkcs12 -in <filename>.pfx -nocerts -nodes -out domaincert.pem

Run below command to extract certificate.

openssl pkcs12 -in <filename>.pfx -clcerts -nokeys -out domaincert.crt

Comments

Popular posts from this blog

Weblogic 12c & Apache 2.4 troubleshooting

Enabling WL-Proxy-SSL HTTP header in WebLogic