Created
March 2, 2014 18:57
-
-
Save nclundsten/9311705 to your computer and use it in GitHub Desktop.
ssl nginx dev tld
This file contains 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
# from terminal: | |
sudo openssl req -new -x509 -nodes -out /etc/nginx/server.crt -keyout /etc/nginx/server.key | |
chmod 600 /etc/nginx/server.key | |
# add these lines in virtual.conf under "server": | |
listen 443 ssl; | |
server_certificate /etc/nginx/server.crt; | |
server_certificate_key /etc/nginx/server.key; | |
# restart nginx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment