Files
jcoffey-dev 628616ff6a
ci / test (pull_request) Successful in 54s
certs: order on the domain that covers the mail host (#82)
certs retried the order on the install's own domain only. The server
orders one certificate per domain, and a domain's default names include
the server's hostname only when it is inside that domain, so a mail host
on another domain was never covered: certs waited three minutes and
failed.

planOrder now picks the domain whose name is the closest suffix of the
mail host. On another domain it orders there with the install's ACME
account: adding a certificate-only domain (no DKIM keys, nothing
published) when the server has none, as the console's Order a
certificate does, or adding the host to names entered in the console. A
domain on the default names whose server hostname is still another name
gets the place to change it instead of a three-minute wait. certs also
stops early when the managed Caddy serves another mail host, since the
challenge can't reach the server then.

RetryCertificates no longer resets a domain's names to the default set
on every retry: names entered in the console are kept.
2026-11-18 09:34:11 -07:00
..