13 thoughts on “How To Renew Your Let's Encrypt SSL Certificate AUTOMATICALLY (with crontab)

  1. Tony, please look into three things, and perhaps issue an addendum or update. These instructions are otherwise incomplete and will leave your viewers hanging. Until then, here are the issues I saw, and readers may be able to bootstrap themselves from here.

    1. Use "certbot –dry-run renew", emphasis on –dry-run, when demonstrating and doing your own testing. Otherwise it doesn't take too many times of doing it without –dry-run to get temporarily blacklisted by their servers.

    2. The crontab technique doesn't work for all Linux distros. I believe that the systemd systems ignore the crontab and use different scripts to do the renewal checks.

    3. When the certificate is actually renewed and replaced after 60 days, the httpd process (i.e. Apache, OpenLiteSpeed, or Nginx) needs to be told to reload its files, typically with systemctl.

  2. Thanks for the info.

    For openlitespeed


    crontab -e

    0 6 * * 0 certbot renew -n -q –pre-hook "service lsws stop" –post-hook "service lsws start"

    is this correct tony?

  3. I manually ran certbot renew and got a type: unauthorized and nginx 404 response. Now cert already expired and I can't seem to make it renew, could I privately share my configs and get some help?

  4. Hello, I have an EC2 instance on AWS and was able to install Let's Encrypt SSL Certificate. However, I wanted to have it automatically renewed and installed without me checking every 3 months. Does this auto renew done by certbot also auto installs it? Or do I still have to re-install the certificate manually? There's a step on certbot that tells me that I would still have to re-install the renewed certificate so it's still like checking back every 3 months.

    Great vid, btw! 😀

  5. Hi Tony, i have an issue with SSL with my website, my website was running fine with Let Encrypt SSL but i generated new SSL request through Virtualmin now google chrome give me error while access virtualmin admin itself. https://l-ink2.com:10000/ Can you plz et me know how can i put it back to Let Encrypt SSL through ssh terminal. I watch ur this tutorial and follow your some step but not working. plz. help 🙂

  6. Hi Tony! Great video! Me being a non techie, these elaborate videos are life saver! I love how you mention everything and explain the reason behind. However, I have a question, how does cloudflare SSL compare to this for WordPress websites? Cloudflare is WAY EASIER right? Am I missing something?

Leave a Reply

Your email address will not be published. Required fields are marked *