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
tweaks
x235be96ded7a
diff --git a/backend/src/services/certificate/certificate-fns.ts b/backend/src/services/certificate/certificate-fns.tsindex 5cd4929bb4..961fb27ff4 100644--- a/backend/src/services/certificate/certificate-fns.ts+++ b/backend/src/services/certificate/certificate-fns.ts@@ -105,9 +105,12 @@ export const buildCertificateChain = async ({kmsService,kmsId}: TBuildCertificateChainDTO) => {+ if (!encryptedCertificateChain && (!caCert || !caCertChain)) {+ return null;+ }+let certificateChain = `${caCert}\n${caCertChain}`.trim();- // If the certificate was generated after ~05/01/25 it will have a encryptedCertificateChain attached to it's bodyif (encryptedCertificateChain) {const kmsDecryptor = await kmsService.decryptWithKmsKey({ kmsId });const decryptedCertChain = await kmsDecryptor({diff --git a/backend/src/services/certificate/certificate-types.ts b/backend/src/services/certificate/certificate-types.tsindex 373fa028cf..ae04eae6b7 100644--- a/backend/src/services/certificate/certificate-types.ts+++ b/backend/src/services/certificate/certificate-types.ts@@ -95,8 +95,8 @@ export type TGetCertificateCredentialsDTO = {};export type TBuildCertificateChainDTO = {- caCert: string;- caCertChain: string;+ caCert?: string;+ caCertChain?: string;encryptedCertificateChain?: Buffer;kmsService: Pick<TKmsServiceFactory, "decryptWithKmsKey">;kmsId: string;