Hi there,
I’m having trouble while testing Let’s Encrypt. I have downloaded Let’s Encrypt via git. I’m using the following command to create a certificate :
> ./letsencrypt-auto certonly --test-cert --webroot -w /var/www/curieuxdinfo.info/ -d curieuxdinfo.info -d www.curieuxdinfo.info
This is the return I got :
> Checking for new version…
> Requesting root privileges to run letsencrypt…
_> /root/.local/share/letsencrypt/bin/letsencrypt certonly --test-cert --webroot -w /var/www/curieuxdinfo.info/ -d [domain and subdomain]
> Failed authorization procedure. [subdomain] (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [subdomain]/.well-known/acme-challenge/I8ho2HvBZ1TaIybrMcKMUu51j69tknm10CW-TianOB8 [51.254.206.240]: 404, [domain] (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from [domain]/.well-known/acme-challenge/WCNLIpPafZN9NHyhSFT9fetGs94hL-ue60wSfqrI_6w [51.254.206.240]: 404
> IMPORTANT NOTES:
> - The following errors were reported by the server:
_> Domain: [subdomain]
> Type: unauthorized
> Detail: Invalid response from [subdomain]/.well-
> known/acme-challenge/I8ho2HvBZ1TaIybrMcKMUu51j69tknm10CW-TianOB8
> [51.254.206.240]: 404
_> Domain: [domain]
> Type: unauthorized
> Detail: Invalid response from [domain]/.well-known
> /acme-challenge/WCNLIpPafZN9NHyhSFT9fetGs94hL-ue60wSfqrI_6w
> [51.254.206.240]: 404
> To fix these errors, please make sure that your domain name was
> entered correctly and the DNS A record(s) for that domain
> contain(s) the right IP address
It seems the client doesn’t have sufficient privilege but I used “sudo” so I don’t understand. Concerning the DNS A record, the configuration correspond to the IP of my server, so I guess it’s ok.
I checked .well-known/acme-challenge/WCNLIpPafZN9NHyhSFT9fetGs94hL-ue60wSfqrI_6w in browser and got 404 error, accordingly to errors report. There is any new directory in the web path root so maybe that’s the problem.
Any clue ?