My domain is:
Private: I would like to forward by private message
I ran this command:
sudo certbot certonly -a nginx --agree-tos --no-eff-email --staple-ocsp --email john@example.com -d mail.example.com
It produced this output:
Certob failed to authenticate some domains (autenticator: nginx). The Certificate Authority reported these problems:
Domain: mail.example.com
Type: connection
Detail: this.is.myipaddress.innumbers: Fetching http://mail.example.com/.well-known/acme-challenge/Ef7XsYfKe9 etc...: Timeout during connect (likely firewall problem)
My web server is (include version):
nginx
The operating system my web server runs on is (include version):
Arch Linux with LTS kernel
My hosting provider, if applicable, is:
Cloudflare
I can log in to a root shell on my machine:
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:
certbot 2.8.0
Hi I think the root of the problem is the fact that I don't have a real web server (with a web page).
The program is looking for A and AAAA records. I don't have an ipv6 connection so I don't have an ipv6 address for an AAAA record.
I just noticed that the terminal output says "Fetching **http://**mail." Perphaps this also means that I certbot is still looking for webpage info. But it's just a computer intended for mail exchange.
You should look at using the DNS Challenge instead. The --nginx plugin uses the HTTP Challenge which requires the Let's Encrypt server to reach your nginx server with an HTTP request on port 80.
Cloudflare readily supports the DNS Challenge. See Certbot plugin for that will create the needed TXT record in the DNS for the Let's Encrypt server to validate your domain. No web server is required. https://certbot-dns-cloudflare.readthedocs.io/en/stable/
Error:
Error determining zone_id: 6003 Invalid request headers. Please confirm that you have supplied valid Cloudflare API credentials. (Did you copy your entire API token/key? To use Cloudflare tokens, you'll need the python package cloudflare>=2.3.1. This certbot is running cloudflare 2.11.7)
Have you double-checked your Cloudflare access matches the method you used?
Here is their docs for the token and a method to test it independently
I don't know why that "bug" link would affect you. It was for someone who'd been using the plugin for some time and had old variable exports. If you also have those then the fix was to remove them. But, I don't know why you would in a new setup.
Cloudflare is a commonly used DNS provider with Certbot. I don't use it personally but we rarely see problems with it.