ACME clients¶
Any RFC 8555 client works with BastionXP CA. Every client needs two things:
- the directory URL:
https://ca.example.com:8443/acme/directory; - to trust the CA's root (
root.crt), because the CA's own HTTPS certificate comes from it.
| Client | Best for | Trust the root with | Page |
|---|---|---|---|
bxp acme |
Simple machines, no extra software | bxp trust, or --root |
bxp acme |
| certbot | Linux servers, nginx/Apache | REQUESTS_CA_BUNDLE |
certbot |
| acme.sh | Shell-only systems, many DNS plugins | --ca-bundle |
acme.sh |
| lego | Single binary, many DNS providers | LEGO_CA_CERTIFICATES |
lego |
| Caddy | Web server with built-in ACME | ca_root |
Caddy |
| Go (autocert) | Go programs that serve HTTPS themselves | the acme.Client's HTTP client |
Go (autocert) |
| Traefik | Reverse proxy, containers | LEGO_CA_CERTIFICATES |
Traefik |
| cert-manager | Kubernetes | caBundle on the issuer |
cert-manager |
Note
certbot, lego, acme.sh, Caddy and Go's autocert are tested against BastionXP CA on every change, and cert-manager once a week, at the versions on their pages. For Traefik the example shows the usual options; check its documentation for its current syntax.
Renewal with 24-hour certificates¶
ACME certificates are tls-server certificates, valid for 24 hours by
default. Whatever the client, it must check for renewal every hour,
not once or twice a day:
-
Clients that ask the CA when to renew (ACME Renewal Information: certbot, lego, acme.sh, Caddy,
bxp acme) renew when the CA says: 16 to 20 hours after issue, or at once after a revocation. -
Clients that decide by a fraction of the lifetime renew in time (certbot renews a certificate shorter than 10 days when half of it has passed).
- Clients that decide by a number of days left (
--days) see less than one day left on every run and renew each time. That works with an hourly run, at the cost of one certificate per hour. - Clients you cannot run that often, or appliances that renew by hand,
need a longer-lived profile: set
acme.x509.cert_profileto a profile of yours based ontls-server(see Certificate profiles).
Which challenge?¶
| Situation | Challenge |
|---|---|
| The host has port 80 free and reachable from the CA | http-01 (standalone or webroot) |
| Port 80 closed, 443 reachable | tls-alpn-01 |
| Wildcard certificate, or the CA cannot reach the host | dns-01 with a DNS plugin |