My website is hosted in Cloudflare I first disable the Cloudflare CDN then I enabled it and I have the same problem. My webserver is nginx and I want to create a let’s encrypt certificate for my website in an nginx reverse proxy. However, the http-01 challenge fails when I ran this command:
./certbot-auto certonly --webroot -w /var/www/letsencrypt -d jcp-connect.fr
It produced this output:
Requesting to rerun ./certbot-auto with root privileges…
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for jcp-connect.fr
Using the webroot path /var/www/letsencrypt for all unmatched domains.
Waiting for verification…
Challenge failed for domain jcp-connect.fr
http-01 challenge for jcp-connect.fr
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:Domain: jcp-connect.fr
Type: unauthorized
Detail: Invalid response from
http://jcp-connect.fr/.well-known/acme-challenge/tdOWhxrzlpNS6rUY8ZfXhL0z2NeHYrYMUd88IhTEi_s
[176.139.8.11]: "\n\n \n\n <meta name=“viewport” content="width=device-w"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.
Another problem I have is that my website is not acceesible over http. What should I dot if I want that my website is accessible over http.