Ssl pfx den nginx conf
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
ssl_certificate /home/alpata/certificates/octapull.com/octapull.com.crt;
ssl_certificate_key /home/alpata/certificates/octapull.com/octapull.com.rsa;