How (and when) do I change the cronjob as listed in item 6 of Certbot Instructions
when the expiry is shortened?
Step 6 install a cron job that runs Certbot twice a day. Certbot then determines when its run whether or not the certificate should be renewed. You don't need to change the cron job as part of the reduction in certificate lifetime from 90 to 64 days.
The main question is: which version of Certbot are you running? B/c the hardcoded "renew 30 days before expiry" was changed to "1/3rd of the cert lifetime before expiry" in 4.0.0 and ARI was introduced in 4.1.0.
So if you're running Certbot older than 4, you need to update.
Basically you are asking the wrong question. The question should have been: I'm running Certbot x.y.z. installed through whatever with these instructions, including the cronjob at step 6: do I need to do anything? Now we can't answer directly what you really want to know.
Renewing a 64 certificate 30 days before expiration might be a bit early, but isn't "you need to update" a bit too strong?
That may seem trivial, but what happens when the 64 becomes less than 30?
[then it becomes and endless renewal loop - so moving away from hardcoded numbers like that is a must]
True but there are no plans to go below 45 days and not until 2028.
Still for various reasons they should update Certbot to a version that supports ARI. But the cronjob should be running at least once/day already regardless. People who use "force renew" options and only run once every 60 days must fix that soon or will fail renewal with 45 day certs. Same for ACME clients that renew after 60 days like older acme.sh versions. Certbot never did that.
As an aside Certify The Web (Windows and linux etc) moved to percentage lifetime some time ago for this very reason.
Once certs get very short lifetimes working in days starts to become a liability, and with percentage lifetime based renewal (plus ARI) you can even have 1hr certificates(!).
No, having ancient software around that's already a major version along is just waiting for trouble. This is a very good argument to get the software management up to par.
The real problems are going to be with obsolete clients that "renew 60 days after issuance", rather than "X days before expiry". That's why 64 days was chosen as an intermediate step towards 45.
I’m using certbot5.8
Thanks for the answers.
Run the cronjob every hour
Let's qualify that some ![]()
If you are using shortlived certs (<7d) that makes sense if you also have a well-behaved ACME Client.
For longer lived certs 2 or 3 times a day is enough. Running hourly requires a well-behaved ACME Client regarding ARI. For example, Certbot versions prior to 5.0 did not retain the ARI retry-after value. If you ran those hourly they would make many useless HTTP requests to the ARI endpoint. Would that matter if one person did it for one cert? No. But that isn't a good practice across the whole population.
Similar issue if the ACME Client does not retain error info about failed cert requests. Because they should do exponentially longer delays after errors. Again, would it matter if one person made extra (failing) cert requests to the CA during an outage. No. But, a large volume can make outages worse (a thundering herd).
If you plan to run each hour be sure your ACME Client honors ARI retry-after and is well-behaved in error handling.
See the ARI RFC and: Integration Guide - Let's Encrypt
So on Debian stable, currently seeing v. 4.0.0.
Wondering when / if we'll see a backport of >= 4.1.0 before the penny drops since the announcement says:
"If your renewals are automated and your client supports ACME Renewal Info (ARI), you should be all set..."
Certbot v4.0 will renew when less than 1/3 of the cert's life remains. That will reasonably adapt to the shorter lifespans. ARI is an important feature but is something you don't have now so doesn't change with the shorter certs.
Whether Debian updates the package on Trixie is up to them. I believe Debian Forky (next year) will have Certbot 5.x
If you want ARI you'll have to use Certbot's snap or pip install. Or look at a different ACME Client that supports it. See: https://certbot.eff.org/
One related check for distro installs: most packaged Certbot versions install a systemd timer (certbot.timer) rather than a cron entry, so it's worth running systemctl list-timers | grep certbot before adding a cron job by hand, to avoid having two schedulers. certbot renew --dry-run is a quick way to confirm the renewal path still works after an upgrade.