- certbot
certbot: Some challenges have failed
Also seen in: Caddy, acme.sh, win-acme, Traefik, Nginx Proxy Manager, cert-manager
In one sentence
Let's Encrypt could not validate one of your names from the internet; the Detail line above the message says what its validators met, and that line picks the fix.
Where you see it
After certbot certonly or certbot renew with the webroot, nginx, apache or standalone plugin, which all answer the HTTP-01 ACME challenge. The last line is Certbot giving up; the reason is the Detail: line of each block above it, labelled Identifier since certbot 5.3.0, and Domain in 5.2.0 and earlier.
$ sudo certbot certonly --webroot -w /var/www/html -d example.com
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Identifier: example.com
Type: unauthorized
Detail: 203.0.113.10: Invalid response from http://example.com/.well-known/acme-challenge/K7xQ...: 404
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed identifiers serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Some challenges have failed.
Type is the ACME error type of RFC 8555 section 6.7 without its urn:ietf:params:acme:error: prefix. The certificate authority wrote Detail, which opens with the address it reached; Hint is Certbot guessing from the plugin name. Other ACME clients show the same Detail sentences.
What it means
Let’s Encrypt refused to validate a name; Certbot only relays the reason. RFC 8555 section 8.3 fixes what the CA does: resolve your name, send GET /.well-known/acme-challenge/<token> to TCP port 80, and compare the body with the key authorisation it expects. The port your site serves on plays no part. Let’s Encrypt follows redirects, up to 10 redirects deep, only to http or https on port 80 or 443, without checking the certificate on the way, so a redirect to HTTPS is fine and one to a parked page is not. When the name has an AAAA record, its validator connects over IPv6 first and retries over IPv4 only when the IPv6 connection itself fails, never after an HTTP answer. It also checks from several networks (multi-perspective issuance corroboration): Let’s Encrypt since February 2020, and every public CA since 2025-03-15 under the Baseline Requirements (ballot SC-067), from at least two remote network perspectives, rising to at least three remote perspectives, with the corroborating ones spanning at least two regional internet registry regions and then at least five remote perspectives; the CA must not issue when the quorum is not met, and the quorum allows one perspective to disagree when a CA uses two to five remote perspectives, and two when it uses six or more. So a site that works in your browser proves nothing: the browser is on your network, on port 443, with a cached DNS answer.
Likely causes
Invalid response … 404: a web server answered without the file
Type unauthorized, the most common. The address at the start of the line answered on port 80 without Certbot’s file; 403, 502 and 522 mean the same, and The key authorization file from the server did not match this challenge is a 200 with the wrong body. Confirm from another network (mobile data, or a VPS), following redirects, over both address families:
sudo mkdir -p /var/www/html/.well-known/acme-challenge
echo ok | sudo tee /var/www/html/.well-known/acme-challenge/test-file
curl -4 -sSL --connect-timeout 10 -o /dev/null -w '%{http_code} %{url_effective}\n' http://example.com/.well-known/acme-challenge/test-file
curl -6 -sSL --connect-timeout 10 -o /dev/null -w '%{http_code} %{url_effective}\n' http://example.com/.well-known/acme-challenge/test-file
Anything but 200 at the original URL shows what answered. With webroot, -w must be the directory the port 80 server block for that name serves (its root directive; the HTTPS block may differ). A name in the default vhost gets its redirect: check sudo nginx -T | grep -n server_name or sudo apachectl -S. If an HTTPS redirect catches /.well-known/, the HTTPS site must serve the file too. A parked page means the registrar still answers. A CDN or reverse proxy must pass the path to the origin; 502 or 522 means the origin did not answer. Store a corrected path with certbot reconfigure (certbot 2.3.0 and later), which dry-runs against staging first:
sudo certbot reconfigure --cert-name example.com --authenticator webroot --webroot-path /var/www/example
Timeout during connect (likely firewall problem)
Type connection. Nothing answered on port 80 at that address; the curl test prints curl: (28) Failed to connect to example.com port 80 after 10002 ms: Timeout was reached. Open port 80 all the way in: host firewall, cloud security group, router port forward and ISP, since some residential lines block inbound 80. Let’s Encrypt’s advice is to keep port 80 open and redirect to HTTPS. An IPv6 address means the AAAA record is at fault: make the server reachable over IPv6 or remove the record. The CA cannot be asked to prefer IPv4, and --http-01-port only moves Certbot’s listener.
Connection refused
Type connection. A host at that address is up with nothing on port 80; an empty sudo ss -ltnp 'sport = :80' confirms. Start the web server, or make it listen on 80 as well as 443. With --standalone, Certbot must bind port 80 itself, so stop the service holding it or use webroot. An IPv6 address that belongs to another machine means a stale AAAA record.
DNS problem: NXDOMAIN, SERVFAIL or no valid records
Type dns. Check the authoritative servers, whatever your resolver cached:
dig +short NS example.com
dig +short A example.com @ns1.example.net
dig +short AAAA example.com @ns1.example.net
NXDOMAIN means the A record is missing (the same text appears for AAAA). SERVFAIL is almost always broken DNSSEC; check with your DNS provider. no valid A records found for …; no valid AAAA records found for … (older wording: No valid IP addresses found for …) means every address is private, loopback or otherwise reserved, which the CA refuses by design; an internal host needs DNS-01.
During secondary validation
The primary request passed and the remote perspectives did not reach quorum: geoblocking, per-country rate limiting or bot-protection rules. Exempt /.well-known/acme-challenge/ from them for every source address: Let’s Encrypt makes five validation requests per challenge, one from its primary data centre and four from remote perspectives, rising to seven requests with six remote perspectives on 10 November 2026, does not publish their addresses, and says they may change.
CAA record for … prevents issuance
Type caa. A CAA record at the name or a parent forbids Let’s Encrypt; dig +short CAA example.com, then each parent, shows which. Fix the policy as in how to set CAA records.
When HTTP-01 is the wrong tool
A host unreachable from the internet, a wildcard certificate, or a port 80 block you cannot lift needs DNS-01: see wildcard certificates with DNS-01. TLS-ALPN-01 (RFC 8737) validates on TCP port 443 and suits TLS-terminating proxies, but Certbot supports only http-01 and dns-01; tls-alpn-01 is not implemented.
Check yours
Once a run succeeds, paste /etc/letsencrypt/live/<name>/cert.pem to confirm the names it covers and its dates.
Learn why
- ACME and Proving you own the name.
- Guides: certbot with Let’s Encrypt, wildcards with DNS-01 and CAA records.
- RFC 8555, RFC 8737 and ballot SC-067.
- Let’s Encrypt challenge types, rate limits and integration guide; certbot user guide.
Does your team keep hitting this?
Everyone can use the lessons. Team seats add earned credentials, invitations and a completion report, so you see who has finished.
Early edition. Written with AI assistance and checked against primary sources; an independent expert review is planned. Found a mistake? Tell us.