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
Address greptile comments
Carlos Monastyrskia2256bcea127
diff --git a/frontend/src/hooks/api/ca/queries.tsx b/frontend/src/hooks/api/ca/queries.tsxindex 130f1a5b30..c289354c13 100644--- a/frontend/src/hooks/api/ca/queries.tsx+++ b/frontend/src/hooks/api/ca/queries.tsx@@ -18,7 +18,7 @@ export const caKeys = {listExternalCasByProjectId: () => ["external-cas"] as const,getCaCerts: (caId: string) => [{ caId }, "ca-cert"],getCaCrls: (caId: string) => [{ caId }, "ca-crls"],- getCaCert: (caId: string) => [{ caId }, "ca-cert"],+ getCaCert: (caId: string) => [{ caId }, "ca-certificate"],getCaCsr: (caId: string) => [{ caId }, "ca-csr"],getCaCrl: (caId: string) => [{ caId }, "ca-crl"],getCaCertTemplates: (caId: string) => [{ caId }, "ca-cert-templates"],diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsxindex be179e8210..91b049c433 100644--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsx+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/components/CaIssuerUrlSection.tsx@@ -32,8 +32,8 @@ export const CaIssuerUrlSection = ({ caId }: Props) => {const caIssuerUrl = `${window.origin}/api/v1/cert-manager/ca/internal/${ca.id}/certificates/${ca.configuration.activeCaCertId}/der`;- const downloadTxtFile = (filename: string, content: string) => {- const blob = new Blob([content], { type: "text/plain;charset=utf-8" });+ const downloadCertFile = (filename: string, content: string) => {+ const blob = new Blob([content], { type: "application/x-pem-file" });FileSaver.saveAs(blob, filename);};@@ -70,7 +70,7 @@ export const CaIssuerUrlSection = ({ caId }: Props) => {<DropdownMenuItemonClick={(e) => {e.stopPropagation();- downloadTxtFile("ca-certificate.pem", caCert.certificate);+ downloadCertFile("ca-certificate.pem", caCert.certificate);}}><DownloadIcon />