Let's Encrypt for hostname works only 3-4 hours!!!

Sergey

Verified User
Joined
Oct 29, 2016
Messages
20
Hi guys,

I installed Let's Encrypt SSL certificate only for my hostname successfully, but it works only 3-4 hours. After that i can't login to my DA panel and phpMyAdmin panel too.

I change ssl=1 to ssl=0 in directadmin.conf and restart DA and change it again to ssl=1 and https works again and i can login into DA.

I installed certificate by this guide:
https://help.directadmin.com/item.php?id=629
but changed this line:
Code:
./letsencrypt.sh request your.hostname.com 4096
with:
Code:
./letsencrypt.sh request_single your.hostname.com 4096

because this error: Challenge is invalid. Details: DNS issue: NXDOMAIN looking up A for www.mail.myhostname.com Exiting ...


I'm using non-standard port for DA instead of default 2222.

Please help me solve this issue.

Best regards,
Sergey
 
Last edited:
Looks to me as if the error is cause by wrong use of your hostname.
Because www.mail.myhostname.com is not a valid FDQN hostname. Maybe you should try again and only use mail.myhostname.com without the www in front of it. If you also used www in your hostname settings, remove it.
 
I wonder... if it was due to wrong hostname how would a cert from Let's Encrypt install for the first time then? If a cert installed and worked for 3-4 hours... there is no reason for it to stop working unless you changed anything on your server.

Probably you should show your real hostname so that we could check it...
 
I was wondering about that too Alex, but I thought it migh be best to first have things in the correct order and then investigate how to fix the problem, if it still would exist then.

But it's indeed better to show the real hostname to be able to do better investigations.
 
Back
Top