Skip to content
MtrXTools

urn:ietf:params:acme:error:unauthorized

The validation response didn't match

Seen in certbot, acme.sh, Caddy, Traefik, cert-manager (Let's Encrypt and other ACME CAs) · Last updated

The CA reached your domain but did not get the expected challenge file or TXT record, so it refused to issue.

Common causes

  • The challenge URL returned 404 or another page: wrong webroot, or a redirect or rewrite rule catches /.well-known/acme-challenge/.
  • The domain points at a different server, CDN or old host than the one running the ACME client.
  • For DNS-01, the _acme-challenge TXT record is missing, stale or not yet visible on all nameservers.

How to fix it

  1. Make /.well-known/acme-challenge/ serve files from the client's webroot over plain HTTP, before any app rewrites.
  2. Check the domain resolves to this server, and pause CDN proxying if it interferes.
  3. For DNS-01, query the TXT record on each authoritative nameserver before retrying.
Follow the challenge URL redirects

Got a different message? Paste it into the error explainer.

Related errors

All 19 Web servers & certificates errors