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
| Name | Type | Description |
|---|---|---|
| identifier | DNS name | Name being validated; HTTP request uses port 80. Wildcard authorization does not use this challenge. |
| token | CA-issued base64url token | Use the challenge token in the URL path. |
| response_body | key authorization | Serve 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; }