ACME http-01 challenge
/.well-known/acme-challenge/<token>
Standard: RFC 8555 (ACME)
How automated certificate issuance (Let's Encrypt et al.) proves you control a domain over HTTP.
What it is
The ACME protocol automates TLS certificate issuance. In the http-01 challenge, the certificate authority asks you to serve a file at /.well-known/acme-challenge/<token> containing the token plus a thumbprint of your account key. If the CA can fetch it, you control the domain.
The threat it addresses
Before automated challenges, proving domain control meant email loops, DNS edits and human review — slow and fragile. http-01 replaces that with a cryptographic proof served over plain HTTP, so issuers like Let's Encrypt can issue and renew certificates at machine speed.
How it works
- The CA issues a random token and tells you to serve /.well-known/acme-challenge/<token>.
- Your HTTP server answers with `<token>.<base64url(sha256(account key JWK))>` — the key authorization.
- The CA fetches the URL over HTTP (port 80, not 443 — that's the point: no cert needed yet) and verifies the value.
- Because this must work on port 80 for arbitrary tokens, web servers and reverse proxies expose a challenge directory or route it dynamically — exactly what this demo does.
Honesty notes
- Demo: a real CA would place a live token here during issuance. This server answers any token with a sample key authorization so the mechanism is visible.
- Some PaaS edge firewalls block /.well-known/acme-challenge/* with 403 to prevent domain-hijacking attacks on shared domains; on Cloudflare Workers this demo endpoint is served directly.
Try it
Live demo
Format demonstration — a real CA places a live token during issuance
demo-token.38dae1e43a8c46ba974f32f5e663e214