openssl pkcs12 -in certname.pfx -nocerts -out certname-encrypted.key
openssl rsa -in certname-encrypted.key -out certname.key
openssl pkcs12 -in certname.pfx -clcerts -nokeys -out certname.crt
openssl pkcs12 -in certname.pfx -nokeys -nodes -cacerts -out certname-ca-bundle.crt
Use the openssl commands above to convert a windows .pfx certificate into separate Certificate and Key files. You will need the password for the .pfx.
Leave a Reply