guneysus
11/19/2018 - 7:26 AM

Convert PFX to SSL Public/Private Key

Convert PFX to SSL Public/Private Key

We’ll start by extracting the CRT file using openssl with the following command

openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -clcerts -nokeys -out domain.crt

Followed by extracting the private key with the following command

openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -nocerts -nodes -out domain.rsa

https://blog.knoldus.com/easiest-way-to-setup-ssl-on-nginx-using-pfx-files/