Skip to content

Instantly share code, notes, and snippets.

@zitooon
Forked from fabien7337/Nginx SSL
Created February 12, 2016 15:12
Show Gist options
  • Save zitooon/119eec99443db74b13b6 to your computer and use it in GitHub Desktop.
Save zitooon/119eec99443db74b13b6 to your computer and use it in GitHub Desktop.
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
sudo service nginx stop
cd /opt/letsencrypt
./letsencrypt-auto certonly --standalone -d example.com -d www.example.com
ssl on;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment