Debian Let's encrypt automation


#1

I have made some scripting to automate the certificate creation and renewal, I have added some functionalities simple but I think useful:

-Precheck if the challenge directory is reachable.
-Check the expire date of the certificate an renew only when an specified number of days is reached.
-Alert with an email if the process of renewal is failing.
-Check all the existing certificates

I have done with some curl and openssl stuff, you can see the details here http://eblog.damia.net/2015/12/03/lets-encrypt-automation-on-debian/

Please feedback!


#2

Thank you very much for your work. I use your script on three nodes now.

Just one Question: Why don’t you added #!/bin/bash at the top?

And you can strip the --agree-dev-preview now :slight_smile:


Custom Apache configuration
#3

I simply use the same command line options for letsencrypt-auto plus the --renew-by-default parameter put these into monthly cron job and thats it :slight_smile: no need to have a additional script.


#4

yes, that works too. But the script from damiasol checks if its Necessaire to renew.
And you dont have to create a new cron for every cert, because the script take care of all issued LE-Certs on the Server


#5

Noted, for the next release of the script. Thx!