Convert pfx certificate to pem

I can never remember those darned openssl parameters. So, I posted this for my own reference.


openssl pkcs12 -in cert.pfx -out cert.pem -nodes

Inside there you will find the certificate(s) and private key — all the included certs and key. You can open the resulting file with a text editor and copy/paste out what you need.

This entry was posted in Linux, Mac OS X, SSL. Bookmark the permalink.

Comments are closed.