Skip to content

Instantly share code, notes, and snippets.

@rickytato
Last active September 21, 2018 09:20
Show Gist options
  • Save rickytato/a620c96c1e7c0727d9c1928179a62369 to your computer and use it in GitHub Desktop.
Save rickytato/a620c96c1e7c0727d9c1928179a62369 to your computer and use it in GitHub Desktop.
NGINX – Easiest way to setup SSL using .pfx files
#
# https://blog.knoldus.com/easiest-way-to-setup-ssl-on-nginx-using-pfx-files/
#
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment