3 ms·
Do we have to run certbot every few months to update the certs? Can we set up a cron to do it? Thoughts welcome.
by EGreg 10y ago
Do we have to run certbot every few months to update the certs? Can we set up a cron to do it? Thoughts welcome.
- elliottcarlson 10y agoYes - you can add it to a cronjob, as well as add a `--renew-hook` option that tells it to do something post renewal, such as restart your webserver. See https://certbot.eff.org/docs/using.html#renewing-certificates https://certbot.eff.org/docs/using.html#renewing-certificate...
- ranger207 10y agoI've been using certbot to automatically update my cert for about a year now with cron. It automatically checks the cert's expiration date and starts trying to renew a couple of weeks before it runs out, and for nginx at least you don't even have to reload.
- vertex-four 10y agoThe documentation recommends using a cron job[0] - the renew subcommand will renew all certificates you have in plenty of time automatically. Set it to run once a week or so, and it'll figure out what to renew and when. [0] https://certbot.eff.org/docs/using.html#renewing-certificates https://certbot.eff.org/docs/using.html#renewing-certificate...
- gravyboat 10y agoI just use a cron: /path/to/letsencrypt/letsencrypt-auto -d domain.con certonly && service nginx reload