Fix ACME: Use the public suffix list to determine the zone name when no origin is provided
This commit is contained in:
@@ -13,12 +13,14 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If
|
|||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
- JMAP:
|
- JMAP:
|
||||||
- Patching ids containing digits in JSON Pointers failes.
|
- Patching ids containing digits in JSON Pointers fails.
|
||||||
- Patching nested objects with `null` values fails.
|
- Patching nested objects with `null` values fails.
|
||||||
- SQL directory: Return `Failed` instead of `Error` when the query returns no results.
|
- SQL directory: Return `Failed` instead of `Error` when the query returns no results.
|
||||||
- Network: Attempt binding to IPv4 when binding to IPv6 fails with `EAFNOSUPPORT` error.
|
- Network: Attempt binding to IPv4 when binding to IPv6 fails with `EAFNOSUPPORT` error.
|
||||||
- Bootstrap: Timeout after 30 seconds when probing the data store.
|
- Bootstrap: Timeout after 30 seconds when probing the data store.
|
||||||
- ACME: Include apex domains when requesting certificates for subdomains.
|
- ACME:
|
||||||
|
- Include apex domains when requesting certificates for subdomains.
|
||||||
|
- Use the public suffix list to determine the zone name when no origin is provided.
|
||||||
|
|
||||||
## [0.16.4] - 2026-05-05
|
## [0.16.4] - 2026-05-05
|
||||||
|
|
||||||
|
|||||||
@@ -256,10 +256,16 @@ impl AcmeRequestBuilder {
|
|||||||
let dns_parameters = dns_parameters.unwrap();
|
let dns_parameters = dns_parameters.unwrap();
|
||||||
let domain = domain.strip_prefix("*.").unwrap_or(&domain);
|
let domain = domain.strip_prefix("*.").unwrap_or(&domain);
|
||||||
|
|
||||||
|
let zone = dns_parameters
|
||||||
|
.origin
|
||||||
|
.as_deref()
|
||||||
|
.or_else(|| psl::domain_str(domain))
|
||||||
|
.unwrap_or(domain);
|
||||||
|
|
||||||
dns_parameters
|
dns_parameters
|
||||||
.updater
|
.updater
|
||||||
.create(
|
.create(
|
||||||
dns_parameters.origin.as_deref().unwrap_or(domain),
|
zone,
|
||||||
&format!("_acme-challenge.{}", domain),
|
&format!("_acme-challenge.{}", domain),
|
||||||
DnsRecord::TXT(self.dns_proof(challenge)?),
|
DnsRecord::TXT(self.dns_proof(challenge)?),
|
||||||
true,
|
true,
|
||||||
|
|||||||
Reference in New Issue
Block a user