From adf9262ded057cd49ccb497044ca2bf058f63487 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Mon, 16 Feb 2026 02:46:54 +0000 Subject: [PATCH] fix(smartacme): Include base domain alongside wildcard when building identifiers for wildcard certificate requests --- changelog.md | 6 ++++++ ts/00_commitinfo_data.ts | 2 +- ts/smartacme.classes.smartacme.ts | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 3d58102..28dc02b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-02-16 - 9.1.3 - fix(smartacme) +Include base domain alongside wildcard when building identifiers for wildcard certificate requests + +- When isWildcardRequest is true, the base domain (e.g. example.com) is now added in addition to the wildcard (*.example.com) so the issued certificate covers both apex and wildcard entries. +- Prevents missing SAN for the apex domain when requesting wildcard certificates. + ## 2026-02-15 - 9.1.2 - fix(docs) document built-in concurrency control, rate limiting, and request deduplication in README diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 301e244..dda58c4 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartacme', - version: '9.1.2', + version: '9.1.3', description: 'A TypeScript-based ACME client for LetsEncrypt certificate management with a focus on simplicity and power.' } diff --git a/ts/smartacme.classes.smartacme.ts b/ts/smartacme.classes.smartacme.ts index 9f05567..dee74d1 100644 --- a/ts/smartacme.classes.smartacme.ts +++ b/ts/smartacme.classes.smartacme.ts @@ -430,6 +430,7 @@ export class SmartAcme { if (isWildcardRequest) { identifiers.push({ type: 'dns', value: `*.${certDomainName}` }); + identifiers.push({ type: 'dns', value: certDomainName }); } else { identifiers.push({ type: 'dns', value: certDomainName });