Skip to content

Instantly share code, notes, and snippets.

@brianjking
Created February 19, 2016 00:18
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 brianjking/60149df286df5490f535 to your computer and use it in GitHub Desktop.
Save brianjking/60149df286df5490f535 to your computer and use it in GitHub Desktop.
Letsencrypt with automatic renewal
  • use Ubuntu 14.04 (check with lsb_release -a)
  • set up VPS like this
  • set up Nginx - (tutorial) - if you use Digital ocean, there are also many preconfigured images available that already have Nginx configured, e.g., I used the Django+PostgreSQL image, which has Nginx configured as reverse proxy in front of Gunicorn
  • further setup (optional, I actually didn't do this)
  • lets encrypt setup
  • make backup of /etc/letsencrypt
  • the current certificate, private key etc then are in /etc/letsencrypt/live/your_domain_name
  • for auto renewal: when using Nginx as a reverse proxy, i.e. when you do not have a traditional static web root, do not use additional nginx configuration from DO letsencrypt tutorial, but this one
  • later on, there will be an nginx plugin for auto renewal (it is not stable yet). Therefore we use the webroot plugin for auto renewal (as described in the tutorial).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment