Skip to content

Instantly share code, notes, and snippets.

@holmberd
Last active November 2, 2017 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holmberd/32ebd38017a10a60988f76312ac30929 to your computer and use it in GitHub Desktop.
Save holmberd/32ebd38017a10a60988f76312ac30929 to your computer and use it in GitHub Desktop.
Run SSL with Nginx and Certbot

Install cerbot

  • sudo add-apt-repository ppa:certbot/certbot
  • sudo apt-get update
  • sudo apt-get install python-certbot-nginx

Obtaining an SSL Certificate

  • sudo certbot --nginx -d example.com -d www.example.com

Auto-renewal

  • Installed with certbot in /etc/cron.d

Test auto-renewal

  • sudo certbot renew --dry-run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment