<!-- https://pkizerotohero.com/errors/certbot-some-challenges-failed/ | Markdown mirror of the HTML page | PKI Zero to Hero, by Duyutech BV -->

> What Let's Encrypt checks when Certbot reports failed challenges, how to read the Detail line, and the fix for each cause: 404, timeout, refused, DNS.

Source: https://pkizerotohero.com/errors/certbot-some-challenges-failed/ · Last reviewed: 2026-10-24

- 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.

[Check yours: Certificate decoder](https://pkizerotohero.com/tools/decoder/)

## 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](https://pkizerotohero.com/handbook/glossary/#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.

```text
$ 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](https://pkizerotohero.com/handbook/glossary/#acme) error type of RFC 8555 section 6.7 without its `urn:ietf:params:acme:error:` prefix. The [certificate authority](https://pkizerotohero.com/handbook/glossary/#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](https://www.rfc-editor.org/rfc/rfc8555#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](https://pkizerotohero.com/handbook/glossary/#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:

```bash
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:

```bash
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](https://letsencrypt.org/docs/allow-port-80/) 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:

```bash
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](https://pkizerotohero.com/handbook/glossary/#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](https://pkizerotohero.com/guides/caa-records/).

### When HTTP-01 is the wrong tool

A host unreachable from the internet, a [wildcard certificate](https://pkizerotohero.com/handbook/glossary/#wildcard-certificate), or a port 80 block you cannot lift needs DNS-01: see [wildcard certificates with DNS-01](https://pkizerotohero.com/guides/wildcard-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.

Common mistake

The retry loop and the allow-list

Running the same command again, or `certbot renew --force-renewal` from cron, changes nothing, and Let’s Encrypt counts every failure: five authorisation failures per identifier per account per hour, refilling at one every 12 minutes, with a backstop of 1,152 consecutive authorisation failures per identifier per account, refilling at one per day. Then your real fix waits for the refill. Allow-listing the CA’s addresses fails too: they are not published, and every added perspective breaks the list. Test with `--dry-run` instead, on staging, which allows 200 authorisation failures per identifier per account per hour on staging; give automated retries the integration guide’s schedule, one minute, then ten minutes, then 100 minutes, then once a day; the CA’s full response is in `/var/log/letsencrypt/letsencrypt.log`.

## Check yours

*Interactive tool: Certificate decoder (runs in the browser at [/tools/decoder/](https://pkizerotohero.com/tools/decoder/))*

Once a run succeeds, paste `/etc/letsencrypt/live/<name>/cert.pem` to confirm the names it covers and its dates.

## Learn why

- [ACME](https://pkizerotohero.com/handbook/acme/) and [Proving you own the name](https://pkizerotohero.com/handbook/domain-validation/).
- Guides: [certbot with Let’s Encrypt](https://pkizerotohero.com/guides/certbot-lets-encrypt/), [wildcards with DNS-01](https://pkizerotohero.com/guides/wildcard-dns-01/) and [CAA records](https://pkizerotohero.com/guides/caa-records/).
- [RFC 8555](https://www.rfc-editor.org/rfc/rfc8555), [RFC 8737](https://www.rfc-editor.org/rfc/rfc8737) and [ballot SC-067](https://cabforum.org/2024/08/05/ballot-sc067v3-require-domain-validation-and-caa-checks-to-be-performed-from-multiple-network-perspectives-corroboration/).
- Let’s Encrypt [challenge types](https://letsencrypt.org/docs/challenge-types/), [rate limits](https://letsencrypt.org/docs/rate-limits/) and [integration guide](https://letsencrypt.org/docs/integration-guide/); [certbot user guide](https://eff-certbot.readthedocs.io/en/stable/using.html).

**Early edition.** Written with AI assistance and checked against primary sources; an independent expert review is planned. Found a mistake? [Tell us](https://pkizerotohero.com/contact/?topic=content-error&page=/errors/certbot-some-challenges-failed/).

Last reviewed 24 October 2026Edition 0.9

## Learn why it happens

- [Chapter 20: ACME and the 47-day schedule](https://pkizerotohero.com/handbook/acme/)
- [Chapter 11: Proving you own the name: DV, OV, EV and CAA](https://pkizerotohero.com/handbook/domain-validation/)

## Fix it step by step

- [How to fix cert-manager certificates stuck Pending or Issuing](https://pkizerotohero.com/guides/cert-manager-certificate-pending/)
- [How to get a Let's Encrypt certificate for an IP address](https://pkizerotohero.com/guides/lets-encrypt-ip-address-certificate/)
- [How to automate HTTPS with NGINX's native ACME module](https://pkizerotohero.com/guides/nginx-native-acme/)

## Everything on this topic

- [Lifecycle and automation](https://pkizerotohero.com/topics/lifecycle-and-automation/)
