Skip to content

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

Minor fix on normalizeSubjectAltNames

Carlos Monastyrski465bb68c1e85
diff --git a/backend/src/ee/services/pki-scep/pki-scep-fns.ts b/backend/src/ee/services/pki-scep/pki-scep-fns.ts
index 541667fddc..abf2fd5abe 100644
--- a/backend/src/ee/services/pki-scep/pki-scep-fns.ts
+++ b/backend/src/ee/services/pki-scep/pki-scep-fns.ts
@@ -165,7 +165,8 @@ export const normalizeSubjectAltNames = (ext: x509.SubjectAlternativeNameExtensi
const pairs: string[] = [];
for (const item of ext.names.items) {
const type = String(item.type).toLowerCase();
- const value = String(item.value).normalize("NFC").trim().toLowerCase();
+ const raw = String(item.value).normalize("NFC").trim();
+ const value = type === "dns" ? raw.toLowerCase() : raw;
pairs.push(`${type}:${value}`);
}
return pairs.sort().join(",");