Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/AcmeChallenge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -235,6 +236,7 @@ export class AcmeChallenge<
*/
async getHttpResource(this: AcmeChallenge<"http-01">): Promise<HttpResource> {
return {
domain: this.authorization.domain,
url:
`http://${this.authorization.domain}/.well-known/acme-challenge/${this.token}`,
name: this.token,
Expand Down Expand Up @@ -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;
Expand All @@ -283,6 +286,7 @@ export interface DnsTxtRecord {
* Represents the HTTP challenge file
*/
export interface HttpResource {
domain: string;
url: string;
name: string;
content: string;
Expand Down