ok cool that we could fix it.
What is still strange that dietpi-letsencrypt did not stop your web server before renewing the certificate. That's why the port was blocked.
letsencrypt renew: Port 80 is already in use Topic is solved
Re: letsencrypt renew: Port 80 is already in use
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: letsencrypt renew: Port 80 is already in use
Hello again,
Im in the same situation again, but now I always get the error: "NET::ERR_CERT_DATE_INVALID"
dietpi-services stop lighttpd
certbot renew --standalone
dietpi-services start lighttpd
And no luck, even did the service lighttpd force-reload that I've did it last time with no luck.
And now I cannot try the renew again, says the certificate do not need to be renewed.
In the browser it says the date expired today, how can I check in the dir
cert.pem chain.pem combined.pem fullchain.pem privkey.pem
Thanks for the help once again
Im in the same situation again, but now I always get the error: "NET::ERR_CERT_DATE_INVALID"
dietpi-services stop lighttpd
certbot renew --standalone
dietpi-services start lighttpd
And no luck, even did the service lighttpd force-reload that I've did it last time with no luck.
And now I cannot try the renew again, says the certificate do not need to be renewed.
In the browser it says the date expired today, how can I check in the dir
, that contains the following:/etc/letsencrypt/live/your-ddns.duckdns.org
cert.pem chain.pem combined.pem fullchain.pem privkey.pem
Thanks for the help once again

Re: letsencrypt renew: Port 80 is already in use
which web server you are using? Because I can see nginx if I try to open the ddns your are posted below.
. But you restarted lighttpd below
It's part if the dir name/etc/letsencrypt/live/your-ddns.duckdns.org

dietpi-services stop lighttpd
certbot renew --standalone
dietpi-services start lighttpd
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: letsencrypt renew: Port 80 is already in use
Hi,
I use lighttpd, I've have never config ngix on dietpi
I dont understand how you end it up there
I use lighttpd, I've have never config ngix on dietpi

I dont understand how you end it up there

Re: letsencrypt renew: Port 80 is already in use
well but this is what it tells me if I try to connect to your side. See attached picture
pls can you do following and pots the output
pls can you do following and pots the output
Code: Select all
ps -ef|grep www
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: letsencrypt renew: Port 80 is already in use
This is very strange
Here is the processes related to www When I open the url I only get the certificate error, something fishy
I'll PM you the url, and tks for changing on my post 

Here is the processes related to www When I open the url I only get the certificate error, something fishy


Re: letsencrypt renew: Port 80 is already in use
I guess you can accept the error message and continue to the website itself.
Strange that you did not have nginx running but the default web page is showing nginx. Unusual it should show default page from lighttpd
Strange that you did not have nginx running but the default web page is showing nginx. Unusual it should show default page from lighttpd

Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
-
- Posts: 39
- Joined: Thu Sep 05, 2019 10:26 am
Re: letsencrypt renew: Port 80 is already in use
I need a good certificate because I use it along wiht nextcloud, and the mobile app is not working anymore for this reason, so I think Im going to try do delete the directory /etc/letsencrypt/live/your-ddns.duckdns.org and try to recreate. Or is there another way to remove it?
And if I'll need to create via cmd, what is the command used? Do you know? I've search and found something like this:
certbot certonly --webroot -w /srv/htdocs/your-ddns.duckdns.org -d your-ddns.duckdns.org
Or should it be:
certbot certonly --webroot -w /etc/letsencrypt/live/your-ddns.duckdns.org -d your-ddns.duckdns.org
And if I'll need to create via cmd, what is the command used? Do you know? I've search and found something like this:
certbot certonly --webroot -w /srv/htdocs/your-ddns.duckdns.org -d your-ddns.duckdns.org
Or should it be:
certbot certonly --webroot -w /etc/letsencrypt/live/your-ddns.duckdns.org -d your-ddns.duckdns.org
Re: letsencrypt renew: Port 80 is already in use
basically you could start dietpi-letsencrypt. That should work as well to refresh your cert. If you go for a command line, you would need to use the original file location at /etc/letsencrypt/live/your-ddns.duckdns.org. So should be more easier to use dietpi tool instead the command 

Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: letsencrypt renew: Port 80 is already in use
This error could mean that the time is not correct. Certificates are valid from a date/time to a date/time. If the system has the wrong date/time, it will think that the certificate is invalid.
If the time is correct, check if you have an antivirus which might be checking https in its options.
If the time is correct, check if you have an antivirus which might be checking https in its options.