Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add DNS-01 challenge

Fang-Pen Lindf58bc1a971b
diff --git a/backend/src/ee/services/pki-acme/pki-acme-service.ts b/backend/src/ee/services/pki-acme/pki-acme-service.ts
index 705cd6c392..c217211a02 100644
--- a/backend/src/ee/services/pki-acme/pki-acme-service.ts
+++ b/backend/src/ee/services/pki-acme/pki-acme-service.ts
@@ -707,15 +707,17 @@ export const pkiAcmeServiceFactory = ({
tx
);
if (!skipDnsOwnershipVerification) {
- // TODO: support other challenge types here. Currently only HTTP-01 is supported.
- await acmeChallengeDAL.create(
- {
- authId: auth.id,
- status: AcmeChallengeStatus.Pending,
- type: AcmeChallengeType.HTTP_01
- },
- tx
- );
+ for (const challengeType of [AcmeChallengeType.HTTP_01, AcmeChallengeType.DNS_01]) {
+ // eslint-disable-next-line no-await-in-loop
+ await acmeChallengeDAL.create(
+ {
+ authId: auth.id,
+ status: AcmeChallengeStatus.Pending,
+ type: challengeType
+ },
+ tx
+ );
+ }
}
return auth;
})