Last active
December 19, 2015 14:59
-
-
Save dux/5973394 to your computer and use it in GitHub Desktop.
nginx SSL common installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install openssl | |
sudo apt-get install openssl | |
# cd to certs folder, create if necessary :) | |
cd /etc/ssl/certs | |
# gen key | |
openssl genrsa -out websitename.key 2048 | |
# gen csr and upload file content to SSL issuer | |
openssl req -new -key websitename.key -out websitename.csr | |
# get crt file from issuer, upload instal and go | |
ssl on; | |
ssl_certificate /etc/ssl/certs/websitename.crt; | |
ssl_certificate_key /etc/ssl/certs/websitename.key; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment