Problem with creating SSL certificate with Let's Encrypt

cybergremlin

New member
Joined
Apr 4, 2017
Messages
1
Hello, i'm trying to create a new certificate with Let's Encrypt (using the latests letsencrypt.sh) and i'm getting the following error

Getting challenge for domain.com from acme-server...
Error: http://domain.com/.well-known/acme-challenge/letsencrypt_1491376837 is not reachable. Aborting the script.
dig output for domain.com:
SOME IP HERE
Please make sure /.well-known alias is setup in WWW server.

And the thing is, this dig output is incorrect. It's an old ip, that the site was hosted on years prior.
So obviously script is looking in the wrong place for the well-known folder. But where does it get this ip? DNS settings for the domain have the correct ip, directadmin config for the domain has the correct ip and the dig output from the same server has the correct ip.
Any ideas?
 
Hello,

Check your /etc/hosts and /etc/resolv.conf
Probably you have wrong IP in your local DNS or in /etc/hosts.
 
Did you moved your domain to a new isp?
Wait a few hours till DNS changes are fully changed, normal this is 12 - 24 hour

then try to create an lets encrypt ssl cert again

Devi
 
Back
Top