Skip to main content

Certbot automatic renewal

Test the renewal manually

Test the renewal process manually with:

sudo certbot renew --dry-run

Set automatic renewal

Enable a systemd timer:

sudo systemctl enable --now certbot.timer

Test the timer

Check status with:

systemctl list-timers | grep certbot

You should see something like:

NEXT                         LEFT       LAST                         PASSED       UNIT                         ACTIVATES
Thu 2025-05-08 06:00:00 UTC  2h left    Wed 2025-05-07 06:00:00 UTC  22h ago      snap.certbot.renew.timer     snap.certbot.renew.service