Tutorial

Manually Renewing Site Certificate

I switched over to the Ghost blogging platform a while back, which utilizes Let's Encrypt for SSL. The certs are only good for 90 days, and there's supposed to be an auto-renewal tool for updating the certs, but I am struggling to get this feature to work for my site's certificate for some reason, and don't have time to keep digging into it at the moment.

Ghost utilizes acme.sh inside a cron job for the renewal, and I've seen a number of people having issues with this setup, as well, but their fixes didn't seem to work for me.

While trying to find a solution, I did manage to find a command that will allow me to do it manually for the time being, so I am posting it here for quick reference later:

sudo certbot --nginx -d example.com -d www.example.com

Of course, replace "example" with the appropriate domain name for your own site, but this should work.

Hell, maybe I just plug this command into a cron job and call it a day?!

I'm not sure, but what I do know is that the tooling is out there to not have to run things manually. I just need to get it to work ...


(Header image by Alexander Schimmeck on Unsplash)

Author image

About Tony Thorsen

Father of two, husband of one, Maker of many things. Tinkerer, dreamer, pixel nudger.