certs can't get a certificate for a mail host on another domain #82

Closed
opened 2026-11-18 16:07:04 +00:00 by jcoffey-dev · 1 comment
Owner

Split out of #81.

inbuxa certs retries the certificate order only on the install's own domain (st.Domain, internal/apply/certs.go, Renew). The server adds its hostname to a domain's certificate only when the hostname is inside that domain's zone (server crates/common/src/network/acme/order.rs, build_domains). So with --mail-host on another domain, certs re-orders a certificate that will never include it, waits three minutes, and fails.

Fix: order on the domain that covers --mail-host. If none does, say so and name what to do: add the name to a domain's certificate, as the console's Order a certificate does, or let certs do that through the API key.

Test: an e2e case with the mail host on a second domain.

Split out of #81. `inbuxa certs` retries the certificate order only on the install's own domain (`st.Domain`, `internal/apply/certs.go`, `Renew`). The server adds its hostname to a domain's certificate only when the hostname is inside that domain's zone (server `crates/common/src/network/acme/order.rs`, `build_domains`). So with `--mail-host` on another domain, `certs` re-orders a certificate that will never include it, waits three minutes, and fails. **Fix:** order on the domain that covers `--mail-host`. If none does, say so and name what to do: add the name to a domain's certificate, as the console's Order a certificate does, or let `certs` do that through the API key. **Test:** an e2e case with the mail host on a second domain.
jcoffey-dev added this to the 27.1 milestone 2026-11-18 16:07:04 +00:00
jcoffey-dev added the bug
priority
p2
labels 2026-11-18 16:07:04 +00:00
jcoffey-dev self-assigned this 2026-11-18 16:07:04 +00:00
Author
Owner

Fixed in #87 (4e761b2). certs orders on the domain that covers the mail host, adding a certificate-only domain when the server has none, and keeps names entered in the console on retries. If the server's hostname is still the old name, it says where to change it. Tested in the lab with e2e/cases/rename.sh (#88).

Fixed in #87 (4e761b2). `certs` orders on the domain that covers the mail host, adding a certificate-only domain when the server has none, and keeps names entered in the console on retries. If the server's hostname is still the old name, it says where to change it. Tested in the lab with `e2e/cases/rename.sh` (#88).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-installer#82