From a296bdfb839e854c32371f839ca7d1e8e22518d5 Mon Sep 17 00:00:00 2001 From: Arnold Hendriks Date: Fri, 5 Jun 2026 13:27:16 +0200 Subject: [PATCH] feat: return domain with expected challenge values --- src/AcmeChallenge.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AcmeChallenge.ts b/src/AcmeChallenge.ts index b6b5a54..8646814 100644 --- a/src/AcmeChallenge.ts +++ b/src/AcmeChallenge.ts @@ -223,6 +223,7 @@ export class AcmeChallenge< : this.authorization.domain; return { + domain: this.authorization.domain, name: `_acme-challenge.${domain}.`, type: "TXT", content: await this.digestToken(), @@ -235,6 +236,7 @@ export class AcmeChallenge< */ async getHttpResource(this: AcmeChallenge<"http-01">): Promise { return { + domain: this.authorization.domain, url: `http://${this.authorization.domain}/.well-known/acme-challenge/${this.token}`, name: this.token, @@ -274,6 +276,7 @@ export type Dns01Challenge = AcmeChallenge<"dns-01">; * Represents a DNS `TXT` record */ export interface DnsTxtRecord { + domain: string; name: string; type: "TXT"; content: string; @@ -283,6 +286,7 @@ export interface DnsTxtRecord { * Represents the HTTP challenge file */ export interface HttpResource { + domain: string; url: string; name: string; content: string;