Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Skip challenge verification
Fang-Pen Lin40532290f80f
diff --git a/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.ts b/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.tsindex f4fff2c411..03ce9c6427 100644--- a/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.ts+++ b/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.ts@@ -43,6 +43,7 @@ import {} from "./acme-certificate-authority-types";import { cloudflareDeleteTxtRecord, cloudflareInsertTxtRecord } from "./dns-providers/cloudflare";import { route53DeleteTxtRecord, route53InsertTxtRecord } from "./dns-providers/route54";+import { getConfig } from "@app/lib/config/env";type TAcmeCertificateAuthorityFnsDeps = {appConnectionDAL: Pick<TAppConnectionDALFactory, "findById">;@@ -240,6 +241,9 @@ export const orderCertificate = async (csr: certificateCsr,email: acmeCa.configuration.accountEmail,challengePriority: ["dns-01"],+ // For ACME development mode, we mock the DNS challenge API calls. So, no real DNS records are created.+ // We need to disable the challenge verification to avoid errors.+ skipChallengeVerification: getConfig().isAcmeDevelopmentMode,termsOfServiceAgreed: true,challengeCreateFn: async (authz, challenge, keyAuthorization) => {