SSL certificates are critical for any production website, but manually renewing them is error-prone and tedious. In this guide, I show you how to fully automate renewal using Certbot and a simple cron job.
First, install Certbot on your server. Then configure a cron job to run certbot renew twice daily. Certbot is smart enough to only renew certificates that are within 30 days of expiry.
I also cover how to hook in a reload command for Nginx so your server picks up the new certificate without any downtime.