Skip to content

Instantly share code, notes, and snippets.

@noomz
Created September 14, 2014 14:42
Show Gist options
  • Save noomz/59f9e8412a633716f524 to your computer and use it in GitHub Desktop.
Save noomz/59f9e8412a633716f524 to your computer and use it in GitHub Desktop.
COMODO SSL with NGINX
# 1. Download all cert files
# 2. Run command, replace www_example_com.crt with your domain cert
cat www_example_com.crt COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt AddTrustExternalCARoot.crt > ssl-bundle.crt
# 3. Upload ssl-bundle.crt and www_example_com.key to your server.
# 4. Config nginx
# ------------------------
# listen 443;
#
# ssl on;
# ssl_certificate /path/to/key/file/www_example_com/ssl-bundle.crt;
# ssl_certificate_key /path/to/key/file/www_example_com/www_example_com.key;
# ------------------------
# 5. Restart nginx server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment