Last active
January 10, 2019 07:24
-
-
Save urbansky/f80ca4fb4fd70167844bdfa22301903b to your computer and use it in GitHub Desktop.
Let's encrypt for Ubuntu 14.04 on Apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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