ACME and certificate operations

ACME HTTP-01 challenge

Domain validation using a token resource on public port 80. Does not support wildcard identifiers. Serve the client-generated response, not an arbitrary token string.

Formal Syntax & Structure

nginx syntaxnginx
http://<identifier>/.well-known/acme-challenge/<token>

Parameters & Attributes

NameTypeDescription
identifierDNS nameName being validated; HTTP request uses port 80. Wildcard authorization does not use this challenge.
tokenCA-issued base64url tokenUse the challenge token in the URL path.
response_bodykey authorizationServe the client-derived key authorization, not merely the token; remove after validation.

Working Example

Example Snippetnginx
location ^~ /.well-known/acme-challenge/ { root /var/www/acme; try_files $uri =404; }
Nginx Reference