Skip to content

Instantly share code, notes, and snippets.

View Gami-404's full-sized avatar

Abdelrhman Gamal Gami-404

View GitHub Profile
@Gami-404
Gami-404 / generate_ssl.md
Last active November 8, 2021 23:21
How to install .pfx to Nginx

I’ll try to explain the easiest way to use a .pfx file that can be used to install SSL on NGINX. 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