Let's encrypt certificate cannot be gebnerated for my website active in cloudflare

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:

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.

This topic was automatically closed after 30 days. New replies are no longer allowed.