OpenSSL – Convert Certificate to PFX
By: Date: August 5, 2021 Categories: General Tags: , , , ,

I had to get a new certificate for this site. When you buy a certificate for a domain online, you usually don’t get a .pfx file right away. You need to convert the files first. You can do this with OpenSSL. When you have a Mac like I do, it is easy because it has OpenSSL out-of-the-box. Just use this simple command in the terminal.

openssl pkcs12 -export -in certificate.crt -inkey certificate.key -out get-command.com.pfx -name get-command.com

In this case I got a *.crt and *.key file in the same folder and the context of the terminal is also in that folder. In this example there is no passphrase on the key but it will ask to set a password for the *.pfx file that will be generated.

Leave a Reply

Your email address will not be published. Required fields are marked *