Letsencrypt problem renewing cert...

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
joaquinain
Posts: 10
Joined: Thu Jun 27, 2019 6:28 pm

Letsencrypt problem renewing cert...

Post by joaquinain »

Hi I have an Odroid Xu4 small NAS with Dietpi in its last version.

I recently had rpoblems renewing the certificates which were expired.

Checking the logs, I realized my Odroid it was trying to renew the certificate using nginx which I had uninstalled and shifted to lighttpd...

...so I installed nginx, renewed the certificate but Owncloud stoped working.

My problem was solved uninstalling again nginx.

The question:

Is there any way to renew the Letsencrypt certificate using lighttpd instead of nginx?

Thanks in advance.
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Letsencrypt problem renewing cert...

Post by Joulinar »

usually Certbot should detect the the browser used and it is working with all available browser stack.

Can you share the full error log pls
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3088
Joined: Sat Nov 18, 2017 6:21 pm

Re: Letsencrypt problem renewing cert...

Post by MichaIng »

Nope, Certbot stores the renewal info/arguments on first usage and then continues to use them, so it now tries to use the Nginx authentication plugin, which does not work with Lighttpd of course. Please switch to webroot authentication method:

Code: Select all

certbot renew --webroot -w /var/www --force-renewal
User avatar
Joulinar
Posts: 5090
Joined: Sat Nov 16, 2019 12:49 am

Re: Letsencrypt problem renewing cert...

Post by Joulinar »

thx for clarification @MichaIng
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply