Skip to content

Instantly share code, notes, and snippets.

@urbansky
Last active January 10, 2019 07:24
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 urbansky/f80ca4fb4fd70167844bdfa22301903b to your computer and use it in GitHub Desktop.
Save urbansky/f80ca4fb4fd70167844bdfa22301903b to your computer and use it in GitHub Desktop.
Let's encrypt for Ubuntu 14.04 on Apache
#
# From https://certbot.eff.org/#ubuntutrusty-apache
#
cd /usr/local/bin
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto # Follow instruction
# Certificates only valid for 90 days
# Add in crontab -e
# Every monday
# Renew the certificates
14 2 * * 1 /usr/local/bin/certbot-auto renew >> /var/log/le-renew.log
#
# Renew manually
#
# Only test
certbot-auto renew --dry-run
# Do it
certbot-auto renew
# Renew only one domain
certbot-auto certonly -d domain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment