This makes it easy to automate pausing your Cloudflare zone(s), renewing your letsencrypt certs, and then unpausing your zone(s).
- Ensure
python-cloudflare
is installed either in system or virtualenv. - Make sure you
chmod 0700 certbot-renew.sh
before you add your credentials. - Replace your existing
certbot renew
cron job with something like@daily /path/to/certbot-renew.sh
. - It's helpful to have
MAILTO="youremail"
in the top of your crontab to easily see the output whenever it runs.
Mark Caudill markcaudill@gmail.com