Thursday, 20 October 2022

Renewing LetsEncrypt SSL Certificates automatically

I found a little script (that I changed a little) to accomodate me in automating SSL certificate renewals.

First of all, the script is executed using a crontab, every 73 days. Why every 73 days? Because that is 5 times a year. Any less, and we (just) go past the 90 days validation period1. (365/4 = 91.25)

The script that basically delegates everything to either other scripts or is dependent of other scripts:

For the script that automatically imports into keystore, see [2].

References

[1] FAQ - Let's Encrypt
https://letsencrypt.org/docs/faq/
[2] LetsEncrypt with Webroot
https://randomthoughtsonjavaprogramming.blogspot.com/2021/11/letsencrypt-with-webroot.html

No comments:

Post a Comment