Posts

Showing posts from June, 2019

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