Hi all
I've configured the ssl using dietpi-letsencrypt on a domain. The ssl certificate renew should be automatically done according to this:
But I received mail about ssl certificate expiring soon.. why? How to check / perform the ssl renew?
dietpi-letsencrypt Auto renew?
Re: dietpi-letsencrypt Auto renew?
Hi,
DietPi creates a cron.monthly job for this:
Logs are generated at:
If you have DietPi-RAMlog mode 1, logs will be cleared every 1 hour.
You can check when cron.monthly will run with:
You can force run a manual renew at any time with. If you run this, check for any errors and paste results please:
DietPi creates a cron.monthly job for this:
Code: Select all
/etc/cron.monthly/dietpi-letsencrypt
Code: Select all
/var/log/dietpi-letsencrypt.log
You can check when cron.monthly will run with:
Code: Select all
dietpi-cron
Code: Select all
/DietPi/dietpi/dietpi-letsencrypt 1
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: dietpi-letsencrypt Auto renew?
Thanks Fourdee! I run your code:
/DietPi/dietpi/dietpi-letsencrypt 1
and this is the result (it seems no renewal has been performed yet..why?)
now my certificates expires in 23 April 2017
/DietPi/dietpi/dietpi-letsencrypt 1
and this is the result (it seems no renewal has been performed yet..why?)
now my certificates expires in 23 April 2017
Re: dietpi-letsencrypt Auto renew?
Looks fine, so in theory the cron.monthly job would succeed when its triggered.fleaplc wrote:and this is the result (it seems no renewal has been performed yet..why?)
When is your cron.monthly set to trigger?:
Code: Select all
dietpi-cron
Code: Select all
ls -lha /etc/cron.monthly/dietpi-letsencrypt
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: dietpi-letsencrypt Auto renew?
Fine thanks, I did as you suggest and into the /etc/cron.monthly/dietpi-letsencrypt that what I see (should be correct)
thanks again!Re: dietpi-letsencrypt Auto renew?
Hello,
is autorenew gone in DietPi v6.25.3? I cannot find dietpi-letsencrypt in /etc/cron.monthly/
btw: great work
is autorenew gone in DietPi v6.25.3? I cannot find dietpi-letsencrypt in /etc/cron.monthly/
btw: great work

Re: dietpi-letsencrypt Auto renew?
@ThAr
It is a fix part of CertBot so it is applied automatically. It is done not via cron job anymore but via systemd timer.
See: systemctl cat certbot.timer and systemctl cat certbot.service
It is a fix part of CertBot so it is applied automatically. It is done not via cron job anymore but via systemd timer.
See: systemctl cat certbot.timer and systemctl cat certbot.service
Re: dietpi-letsencrypt Auto renew?
Code: Select all
systemctl list-timers
Code: Select all
certbot renew
Re: dietpi-letsencrypt Auto renew?
@MichaIng @baz123
Thank you very much!
Thank you very much!