Skip to content

Instantly share code, notes, and snippets.

@nclundsten
Created March 2, 2014 18:57
Show Gist options
  • Save nclundsten/9311705 to your computer and use it in GitHub Desktop.
Save nclundsten/9311705 to your computer and use it in GitHub Desktop.
ssl nginx dev tld
# 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