4 ms·
In case anyone is looking for an actual cronjob example. This works wonderfully: #!/bin/bash cd /srv/cert/domain.xyz simp_le -d domain.xyz:/srv/www/domai
by binwiederhier 11y ago
In case anyone is looking for an actual cronjob example. This works wonderfully:
#!/bin/bash
cd /srv/cert/domain.xyz
simp_le -d domain.xyz:/srv/www/domain.xyz/html \
-f key.pem -f cert.pem -f fullchain.pem \
&& service apache2 reload
And in the crontab:
43 1 * * * /srv/bin/cert-renew || true
EDIT: This is using the simp_le client (https://github.com/kuba/simp_le https://github.com/kuba/simp_le), not the official client. But this one is wayy easier to use.
EDIT 2: Guide here: https://blog.philippheckel.com/2015/12/04/lets-encrypt-5-min-guide-to-set-up-cronjob-based-certificate-renewal/ https://blog.philippheckel.com/2015/12/04/lets-encrypt-5-min...
- bronson 11y agoIt should be noted that this isn't using LetsEncrypt's client.
- binwiederhier 11y agoYes, correct. This is using the simp_le client (as mentioned in https://news.ycombinator.com/item?id=10672006 https://news.ycombinator.com/item?id=10672006). The client is easier to use and developed by the same author as the official client. Works wonderfully.