#
# 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