Let’s Encrypt & Certbot – auto renew doesn’t work

It happened to me that my websites’ certificates expired 180 days after it was setup using Let’s Encrypt and Certbot. I setup auto renew as a cron job, but didn’t really test it.

Turns out to renew cert, you need to stop any running web servers that might be using the cert. E.g. for Apache, it would be

[bash] sudo service apache2 stop

renew cmd, e.g. certbot renew

sudo service apache2 start [/bash]

Written on January 16, 2017