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 16:31:03     6h left       Thu 2025-05-08 07:13:12       2h 58min ago     certbot.timer   certbot.service