Skip to content

Instantly share code, notes, and snippets.

@fabien7337
Last active February 12, 2016 15:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fabien7337/db16832e18c0fcc1a993 to your computer and use it in GitHub Desktop.
Save fabien7337/db16832e18c0fcc1a993 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
# In Nginx conf file
ssl on;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
sudo service nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment