• Cron job for let’s encrypt renewal

     Joseph updated 10 months, 2 weeks ago 2 Members · 2 Posts
  • Jack

    August 22, 2020 at 1:27 pm

    Is this correct way to set cron for renewal of Let’s Encrypt cert in Apache2 ? I use Ubuntu 16.04.

    @monthly letsencrypt renew && service apache2 reload
  • Joseph

    August 22, 2020 at 1:59 pm

    This script should run at least weekly, and preferably daily. Remember that certs don’t get renewed unless they are near to expiration, and monthly would cause your existing certs to occasionally be expired already before they get renewed.

    The name of the program is certbot, which was renamed from letsencrypt. If you are still using letsencrypt, you need to update to the current version.

    Aside from those issues, it’s about the same as my cron jobs.

    43 6 * * * certbot renew --post-hook "systemctl reload nginx"
Viewing 1 - 2 of 2 replies

Log in to reply.

Original Post
0 of 0 posts June 2018