ACME server setup¶
Turn it on¶
List the domains ACME clients may get certificates for, and restart
bxp serve:
example.com allows example.com and every name below it, such as
web.example.com, and the wildcard *.example.com. Names outside the
listed domains are refused before the CA contacts anybody.
The server started log line then says acme=true, and the directory is at
https://<server>/acme/directory.
All settings¶
acme:
allowed_domains: [example.com, corp.internal]
allowed_ip_ranges: [10.0.0.0/8] # default: no IP addresses
challenges: [http-01, dns-01, tls-alpn-01] # default: all three
dns_resolver: 10.0.0.53:53 # default: this machine's resolvers
limits:
accounts_per_ip_per_hour: 100 # default 100; 0: no limit
orders_per_account_per_hour: 300 # default 300; 0: no limit
| Key | Default | Reload | Meaning |
|---|---|---|---|
allowed_domains |
yes | Domains ACME may issue for. Plain domain names: no *, no leading dot. |
|
allowed_ip_ranges |
none | yes | IP ranges ACME may issue for. See IP addresses. |
challenges |
all three | yes | The challenge types offered. See Challenges. |
dns_resolver |
this machine's | no | The DNS server dns-01 asks. |
limits.* |
100 / 300 | yes | See Rate limits. |
x509.cert_profile |
tls-server |
no | The profile of ACME certificates: tls-server or one of yours based on it, e.g. for shorter lifetimes. |
Fit with the rest of the CA¶
- With name constraints, the allowed domains must fit them; the CA refuses anything outside, whatever ACME allows.
- ACME issues certificates of
acme.x509.cert_profile:tls-serverby default (24 hours), or one of your profiles based on it, with that profile's default lifetime. - With 24-hour certificates, ACME clients must check for renewal every hour. certbot renews a certificate shorter than 10 days when half its lifetime has passed; its usual twice-a-day timer, with its random delay, can miss that. See certbot.
- ACME certificates are recorded with
VIA acmeand renewed by the ACME client, never withbxp renew.
What the CA must reach¶
To check a challenge, the CA connects to the host being verified:
| Challenge | The CA connects to |
|---|---|
http-01 |
the name, on port 80 |
tls-alpn-01 |
the name, on port 443 |
dns-01 |
the DNS server (dns_resolver, or its own resolvers) |
So the CA must resolve the names to the right addresses, and the firewall must let it reach them.