Skip to content

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

fix(pki): allow revoking imported certs under a DigiCert profile (#8381)

Saif Ur Rahmanf9b6de246988
diff --git a/backend/src/services/certificate/certificate-service.ts b/backend/src/services/certificate/certificate-service.ts
index b5c04ddea0..4a6cb2e32d 100644
--- a/backend/src/services/certificate/certificate-service.ts
+++ b/backend/src/services/certificate/certificate-service.ts
@@ -706,7 +706,7 @@ export const certificateServiceFactory = ({
if (cert.status === CertStatus.REVOKED) throw new Error("Certificate already revoked");
- if (ca.internalCa && cert.profileId && cert.source === CertificateSource.Imported) {
+ if (ca.internalCa?.id && cert.profileId && cert.source === CertificateSource.Imported) {
const certBody = await certificateBodyDAL.findOne({ certId: cert.id });
if (!certBody) {
throw new NotFoundError({ message: "Certificate body not found" });