PROJET AUTOBLOG


Shaarli - Librement Shaarli

Archivé

Site original : Shaarli - Librement Shaarli

⇐ retour index

Converting pfx to pem using openssl - Stack Overflow

mardi 21 novembre 2017 à 14:03
openssl pkcs12 -in client_ssl.pfx -out client_ssl.pem -clcerts

openssl pkcs12 -in client_ssl.pfx -out root.pem -cacerts

If you want your file to be password protected etc, then there are additional options.

Another perspective for doing it on Linux... here is how to do it so that the resulting single file contains the decrypted private key so that something like HAProxy can use it without prompting you for passphrase.

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

Permalink