My domain is: aya.nl
I ran this command:
sudo certbot --nginx -d aya.nl -d www.aya.nl --test-cert
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for aya.nl
http-01 challenge for www.aya.nl
nginx: [warn] conflicting server name “www.aya.nl” on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name “aya.nl” on 0.0.0.0:80, ignored
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. aya.nl (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://aya.nl/.well-known/acme-challenge/v6G3wwa_cS1_KztmIXfHCAPDsXIJv1QO5mW32Xr_5Qg: "<!doctype html>\n <html lang=“nl”>\n \n <meta charset=“utf-8”>\n <meta name=“viewport” content=“width=devi”, www.aya.nl (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.aya.nl/.well-known/acme-challenge/Q8KN6WK82Hze7XHKlIsFiPhAl9K9ZL5w8XgcDrYwkF0: "<!doctype html>\n <html lang=“nl”>\n \n <meta charset=“utf-8”>\n <meta name=“viewport” content=“width=devi”
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: aya.nl
Type: unauthorized
Detail: Invalid response from
http://aya.nl/.well-known/acme-challenge/v6G3wwa_cS1_KztmIXfHCAPDsXIJv1QO5mW32Xr_5Qg:
"<!doctype html>\n <html lang=“nl”>\n \n <meta
charset=“utf-8”>\n <meta name=“viewport”
content=“width=devi”Domain: www.aya.nl
Type: unauthorized
Detail: Invalid response from
http://www.aya.nl/.well-known/acme-challenge/Q8KN6WK82Hze7XHKlIsFiPhAl9K9ZL5w8XgcDrYwkF0:
"<!doctype html>\n <html lang=“nl”>\n \n <meta
charset=“utf-8”>\n <meta name=“viewport”
content=“width=devi”To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version):
nginx 1.10.3
The operating system my web server runs on is (include version):
ubuntu 18.04
My hosting provider, if applicable, is:
digitaloceaan
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot 0.28.0
The weird thing is that other domains on the same server, with the samen virtual host configuration working fine. I can make certificates for the domains, but only aya.nl doesn’t work.
I must say i change the dns yesterday, is there some dns cache? Do i need to wait more than 24 hours?
I tried to make the directory: http://www.aya.nl/.well-known/acme-challenge/test.txt.
I tried this in the virtual host conf:
location ~ /.well-known/acme-challenge {
allow all;
}
But this are actions that not working and with other domains i had never problems with things like acme.