Skip to content

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

Fix wrong enrollmentType on condition

Carlos Monastyrski3bf0656d87c7
diff --git a/backend/src/services/certificate-profile/certificate-profile-service.ts b/backend/src/services/certificate-profile/certificate-profile-service.ts
index a5bd09b189..12e272ad65 100644
--- a/backend/src/services/certificate-profile/certificate-profile-service.ts
+++ b/backend/src/services/certificate-profile/certificate-profile-service.ts
@@ -213,7 +213,7 @@ export const certificateProfileServiceFactory = ({
throw new NotFoundError({ message: "Project not found" });
}
const plan = await licenseService.getPlan(project.orgId);
- if (!plan.pkiAcme && data.enrollmentType === EnrollmentType.EST) {
+ if (!plan.pkiAcme && data.enrollmentType === EnrollmentType.ACME) {
throw new BadRequestError({
message: "Failed to create certificate profile: Plan restriction. Upgrade plan to continue"
});