HTTP directives
acme_certificate directive (HTTP ACME)
Requests certificate material for an issuer. Omitted identifiers come from server_name; wildcards and regex names are not accepted as certificate identifiers. The default private key is ECDSA 256. Context: server. Documented default: none. Module release note: no specific introduction version stated on directive page. Requires the separately available ACME module; confirm the exact package/build. Illustrative only, not executed.
Formal Syntax & Structure
nginx syntaxnginx
acme_certificate issuer [identifier ...] [key=alg[:size]];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| issuer | string | Name of an acme_issuer block. |
| identifier | string list | Explicit certificate identifiers; omit to use valid server names. |
| key=alg[:size] | algorithm | ECDSA 256/384/521 or RSA 2048/3072/4096. |
Working Example
Example Snippetnginx
# Illustrative fragment; do not activate against a real CA.server { listen 443 ssl; server_name docs.example.invalid; acme_certificate training_ca docs.example.invalid key=ecdsa:384; ssl_certificate $acme_certificate; ssl_certificate_key $acme_certificate_key;}