Lets Encrypt on Ubuntu 16

19th April 2017
by InfiniteMonkeys

Assuming a single site Apache host, the following should get you SSL’d

Get the package:
sudo apt-get update
sudo apt-get install python-letsencrypt-apache

Setup the SSL Cert:
sudo letsencrypt –apache -d track.datacentremonkey.com
( For multiple domains: sudo letsencrypt –apache -d example.com -d www.example.com)

Test your SSL: https://track.datacentremonkey.com

Done!

Manual Renewal:
sudo letsencrypt renew

Auto Renewal:
Add the following to your crontab, to check every Monday at 1am:
00 1 * * 1 /usr/bin/letsencrypt renew >> /var/log/le-renew.log

*If the cert is set to expire within the next 31 days, the above will update the cert prior to expiration.