Skip to content

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

Address PR comments

Carlos Monastyrski2672cb763aa9
diff --git a/Dockerfile.fips.standalone-infisical b/Dockerfile.fips.standalone-infisical
index eb1eeb9d31..1d617355b5 100644
--- a/Dockerfile.fips.standalone-infisical
+++ b/Dockerfile.fips.standalone-infisical
@@ -190,6 +190,7 @@ RUN apt-get update && apt-get install -y smbclient && rm -rf /var/lib/apt/lists/
# Installed to /opt/openssl-pqc so it does not conflict with the FIPS OpenSSL above.
WORKDIR /tmp/openssl-pqc-build
RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/openssl-3.5.6.tar.gz \
+ && echo "deae7c80cba99c4b4f940ecadb3c3338b13cb77418409238e57d7f31f2a3b736 openssl-3.5.6.tar.gz" | sha256sum -c - \
&& tar -xf openssl-3.5.6.tar.gz \
&& cd openssl-3.5.6 \
&& ./Configure --prefix=/opt/openssl-pqc --openssldir=/opt/openssl-pqc/ssl no-docs \
diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisical
index d15de26a28..443bd5c26b 100644
--- a/Dockerfile.standalone-infisical
+++ b/Dockerfile.standalone-infisical
@@ -175,6 +175,7 @@ RUN apt-get update && apt-get install -y smbclient && rm -rf /var/lib/apt/lists/
# Installed to /opt/openssl-pqc so it does not conflict with the system OpenSSL.
WORKDIR /tmp/openssl-build
RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/openssl-3.5.6.tar.gz \
+ && echo "deae7c80cba99c4b4f940ecadb3c3338b13cb77418409238e57d7f31f2a3b736 openssl-3.5.6.tar.gz" | sha256sum -c - \
&& tar -xf openssl-3.5.6.tar.gz \
&& cd openssl-3.5.6 \
&& ./Configure --prefix=/opt/openssl-pqc --openssldir=/opt/openssl-pqc/ssl no-docs \
diff --git a/backend/Dockerfile.dev b/backend/Dockerfile.dev
index 943284aaf7..a072ce5a9f 100644
--- a/backend/Dockerfile.dev
+++ b/backend/Dockerfile.dev
@@ -81,6 +81,7 @@ RUN mkdir -p /opt/oracle && \
# Build OpenSSL 3.5.6 for PQC (ML-DSA / SLH-DSA) certificate support.
WORKDIR /tmp/openssl-pqc-build
RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/openssl-3.5.6.tar.gz \
+ && echo "deae7c80cba99c4b4f940ecadb3c3338b13cb77418409238e57d7f31f2a3b736 openssl-3.5.6.tar.gz" | sha256sum -c - \
&& tar -xf openssl-3.5.6.tar.gz \
&& cd openssl-3.5.6 \
&& ./Configure --prefix=/opt/openssl-pqc --openssldir=/opt/openssl-pqc/ssl no-docs \
diff --git a/backend/Dockerfile.dev.fips b/backend/Dockerfile.dev.fips
index 573e109ceb..911799f17e 100644
--- a/backend/Dockerfile.dev.fips
+++ b/backend/Dockerfile.dev.fips
@@ -92,6 +92,7 @@ RUN wget https://www.openssl.org/source/openssl-3.1.2.tar.gz \
# Build OpenSSL 3.5.6 for PQC (ML-DSA / SLH-DSA) certificate support.
WORKDIR /tmp/openssl-pqc-build
RUN wget -q https://github.com/openssl/openssl/releases/download/openssl-3.5.6/openssl-3.5.6.tar.gz \
+ && echo "deae7c80cba99c4b4f940ecadb3c3338b13cb77418409238e57d7f31f2a3b736 openssl-3.5.6.tar.gz" | sha256sum -c - \
&& tar -xf openssl-3.5.6.tar.gz \
&& cd openssl-3.5.6 \
&& ./Configure --prefix=/opt/openssl-pqc --openssldir=/opt/openssl-pqc/ssl no-docs \
diff --git a/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts b/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts
index 4632ac2784..73d28aa861 100644
--- a/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts
+++ b/backend/src/services/certificate-authority/internal/internal-certificate-authority-fns.ts
@@ -114,7 +114,7 @@ export const InternalCertificateAuthorityFns = ({
const caKeyAlgorithm = ca.internalCa.keyAlgorithm as CertKeyAlgorithm;
const alg = keyAlgorithmToAlgCfg(caKeyAlgorithm);
- const cryptoEngine = isPqcAlgorithm(caKeyAlgorithm) ? getPqcCrypto() : globalThis.crypto;
+ const cryptoEngine = isPqcAlgorithm(caKeyAlgorithm) ? getPqcCrypto() : crypto.nativeCrypto;
const leafKeys = await cryptoEngine.subtle.generateKey(alg as RsaHashedKeyGenParams, true, ["sign", "verify"]);
// eslint-disable-next-line no-bitwise
@@ -155,10 +155,15 @@ export const InternalCertificateAuthorityFns = ({
new x509.CertificatePolicyExtension(["2.5.29.32.0"]) // anyPolicy
];
- let selectedKeyUsages = subscriber.keyUsages as CertKeyUsage[];
+ const selectedKeyUsages = subscriber.keyUsages as CertKeyUsage[];
if (isPqcAlgorithm(caKeyAlgorithm)) {
const invalidForPqc = [CertKeyUsage.KEY_ENCIPHERMENT, CertKeyUsage.KEY_AGREEMENT, CertKeyUsage.DATA_ENCIPHERMENT];
- selectedKeyUsages = selectedKeyUsages.filter((ku) => !invalidForPqc.includes(ku));
+ const requested = selectedKeyUsages.filter((ku) => invalidForPqc.includes(ku));
+ if (requested.length > 0) {
+ throw new BadRequestError({
+ message: `Key usages ${requested.join(", ")} are not valid for PQC signature-only algorithms`
+ });
+ }
}
// eslint-disable-next-line no-bitwise
const keyUsagesBitValue = selectedKeyUsages.reduce((accum, keyUsage) => accum | x509.KeyUsageFlags[keyUsage], 0);
@@ -357,7 +362,7 @@ export const InternalCertificateAuthorityFns = ({
const caKeyAlgorithm = ca.internalCa.keyAlgorithm as CertKeyAlgorithm;
const alg = keyAlgorithmToAlgCfg(caKeyAlgorithm);
- const cryptoEngine = isPqcAlgorithm(caKeyAlgorithm) ? getPqcCrypto() : globalThis.crypto;
+ const cryptoEngine = isPqcAlgorithm(caKeyAlgorithm) ? getPqcCrypto() : crypto.nativeCrypto;
const leafKeys = await cryptoEngine.subtle.generateKey(alg as RsaHashedKeyGenParams, true, ["sign", "verify"]);
// eslint-disable-next-line no-bitwise
@@ -419,7 +424,12 @@ export const InternalCertificateAuthorityFns = ({
if (isPqcAlgorithm(caKeyAlgorithm)) {
const invalidForPqc = [CertKeyUsage.KEY_ENCIPHERMENT, CertKeyUsage.KEY_AGREEMENT, CertKeyUsage.DATA_ENCIPHERMENT];
- selectedKeyUsages = selectedKeyUsages.filter((ku) => !invalidForPqc.includes(ku));
+ const requested = selectedKeyUsages.filter((ku) => invalidForPqc.includes(ku));
+ if (requested.length > 0) {
+ throw new BadRequestError({
+ message: `Key usages ${requested.join(", ")} are not valid for PQC signature-only algorithms`
+ });
+ }
}
const keyUsagesBitValue = selectedKeyUsages.reduce((accum, keyUsage) => accum | x509.KeyUsageFlags[keyUsage], 0);
diff --git a/backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts b/backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
index 570da52b55..05051171b9 100644
--- a/backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
+++ b/backend/src/services/certificate-authority/internal/internal-certificate-authority-service.ts
@@ -146,22 +146,28 @@ export const internalCertificateAuthorityServiceFactory = ({
permissionService,
caSigningConfigDAL
}: TInternalCertificateAuthorityServiceFactoryDep) => {
+ // CA key usage flags: PQC algorithms are signature-only (no keyEncipherment)
+ const PQC_CA_KEY_USAGES =
+ x509.KeyUsageFlags.keyCertSign | x509.KeyUsageFlags.cRLSign | x509.KeyUsageFlags.digitalSignature;
+ const CLASSICAL_CA_KEY_USAGES = PQC_CA_KEY_USAGES | x509.KeyUsageFlags.keyEncipherment;
+
+ const $getSignatureKeyFamily = (sigAlg: string): string => {
+ if (sigAlg.startsWith("ML-DSA")) return "ML-DSA";
+ if (sigAlg.startsWith("SLH-DSA")) return "SLH-DSA";
+ return sigAlg.split("-")[0];
+ };
+
const $checkSignature = (caKeyAlg: string, requestedKeyType: string, signatureAlgorithm?: string) => {
const isRsaCa = caKeyAlg.startsWith("RSA");
const isEcdsaCa = caKeyAlg.startsWith("EC") || caKeyAlg.startsWith("ECDSA");
const isMlDsaCa = caKeyAlg.startsWith("ML-DSA");
const isSlhDsaCa = caKeyAlg.startsWith("SLH-DSA");
- // eslint-disable-next-line no-nested-ternary
- const caSupports = isRsaCa
- ? "RSA"
- : isEcdsaCa
- ? "ECDSA"
- : isMlDsaCa
- ? "ML-DSA"
- : isSlhDsaCa
- ? "SLH-DSA"
- : "unknown";
+ let caSupports = "unknown";
+ if (isRsaCa) caSupports = "RSA";
+ else if (isEcdsaCa) caSupports = "ECDSA";
+ else if (isMlDsaCa) caSupports = "ML-DSA";
+ else if (isSlhDsaCa) caSupports = "SLH-DSA";
// PQC: exact variant match required (ML-DSA-44 CA can only sign with ML-DSA-44)
if ((isMlDsaCa || isSlhDsaCa) && signatureAlgorithm) {
@@ -290,6 +296,12 @@ export const internalCertificateAuthorityServiceFactory = ({
projectId = dto.projectId;
}
+ if (keyAlgorithm.startsWith("SLH-DSA")) {
+ throw new BadRequestError({
+ message: "SLH-DSA algorithms are not currently supported for CA creation. Use ML-DSA instead."
+ });
+ }
+
const dn = createDistinguishedName({
commonName,
organization,
@@ -300,7 +312,7 @@ export const internalCertificateAuthorityServiceFactory = ({
});
const alg = keyAlgorithmToAlgCfg(keyAlgorithm);
- const cryptoEngine = isPqcAlgorithm(keyAlgorithm) ? getPqcCrypto() : globalThis.crypto;
+ const cryptoEngine = isPqcAlgorithm(keyAlgorithm) ? getPqcCrypto() : crypto.nativeCrypto;
const keys = await cryptoEngine.subtle.generateKey(alg as RsaHashedKeyGenParams, true, ["sign", "verify"]);
const newCa = await certificateAuthorityDAL.transaction(async (tx) => {
@@ -601,14 +613,8 @@ export const internalCertificateAuthorityServiceFactory = ({
signingAlgorithm: alg,
extensions: [
new x509.BasicConstraintsExtension(true, resolvedPathLength, true),
- // eslint-disable-next-line no-bitwise
new x509.KeyUsagesExtension(
- isPqcAlgorithm(ca.internalCa.keyAlgorithm)
- ? x509.KeyUsageFlags.keyCertSign | x509.KeyUsageFlags.cRLSign | x509.KeyUsageFlags.digitalSignature
- : x509.KeyUsageFlags.keyCertSign |
- x509.KeyUsageFlags.cRLSign |
- x509.KeyUsageFlags.digitalSignature |
- x509.KeyUsageFlags.keyEncipherment,
+ isPqcAlgorithm(ca.internalCa.keyAlgorithm) ? PQC_CA_KEY_USAGES : CLASSICAL_CA_KEY_USAGES,
true
),
await x509.SubjectKeyIdentifierExtension.create(caPublicKey)
@@ -827,14 +833,8 @@ export const internalCertificateAuthorityServiceFactory = ({
},
signingAlgorithm: alg,
extensions: [
- // eslint-disable-next-line no-bitwise
new x509.KeyUsagesExtension(
- isPqcAlgorithm(ca.internalCa.keyAlgorithm)
- ? x509.KeyUsageFlags.keyCertSign | x509.KeyUsageFlags.cRLSign | x509.KeyUsageFlags.digitalSignature
- : x509.KeyUsageFlags.keyCertSign |
- x509.KeyUsageFlags.cRLSign |
- x509.KeyUsageFlags.digitalSignature |
- x509.KeyUsageFlags.keyEncipherment
+ isPqcAlgorithm(ca.internalCa.keyAlgorithm) ? PQC_CA_KEY_USAGES : CLASSICAL_CA_KEY_USAGES
)
],
attributes: [new x509.ChallengePasswordAttribute("password")]
@@ -852,14 +852,8 @@ export const internalCertificateAuthorityServiceFactory = ({
publicKey: csrObj.publicKey,
signingAlgorithm: parentAlg,
extensions: [
- // eslint-disable-next-line no-bitwise
new x509.KeyUsagesExtension(
- isPqcAlgorithm(ca.internalCa.keyAlgorithm)
- ? x509.KeyUsageFlags.keyCertSign | x509.KeyUsageFlags.cRLSign | x509.KeyUsageFlags.digitalSignature
- : x509.KeyUsageFlags.keyCertSign |
- x509.KeyUsageFlags.cRLSign |
- x509.KeyUsageFlags.digitalSignature |
- x509.KeyUsageFlags.keyEncipherment,
+ isPqcAlgorithm(ca.internalCa.keyAlgorithm) ? PQC_CA_KEY_USAGES : CLASSICAL_CA_KEY_USAGES,
true
),
new x509.BasicConstraintsExtension(
@@ -1211,14 +1205,8 @@ export const internalCertificateAuthorityServiceFactory = ({
publicKey: csrObj.publicKey,
signingAlgorithm: alg,
extensions: [
- // eslint-disable-next-line no-bitwise
new x509.KeyUsagesExtension(
- isPqcAlgorithm(csrObj.publicKey.algorithm.name)
- ? x509.KeyUsageFlags.keyCertSign | x509.KeyUsageFlags.cRLSign | x509.KeyUsageFlags.digitalSignature
- : x509.KeyUsageFlags.keyCertSign |
- x509.KeyUsageFlags.cRLSign |
- x509.KeyUsageFlags.digitalSignature |
- x509.KeyUsageFlags.keyEncipherment,
+ isPqcAlgorithm(csrObj.publicKey.algorithm.name) ? PQC_CA_KEY_USAGES : CLASSICAL_CA_KEY_USAGES,
true
),
new x509.BasicConstraintsExtension(true, maxPathLength === -1 ? undefined : maxPathLength, true),
@@ -1748,28 +1736,21 @@ export const internalCertificateAuthorityServiceFactory = ({
const effectiveKeyAlgorithm =
(keyAlgorithm as CertKeyAlgorithm) || (ca.internalCa.keyAlgorithm as CertKeyAlgorithm);
const keyGenAlg = keyAlgorithmToAlgCfg(effectiveKeyAlgorithm);
- const leafCryptoEngine = isPqcAlgorithm(effectiveKeyAlgorithm) ? getPqcCrypto() : globalThis.crypto;
+ const leafCryptoEngine = isPqcAlgorithm(effectiveKeyAlgorithm) ? getPqcCrypto() : crypto.nativeCrypto;
const leafKeys = await leafCryptoEngine.subtle.generateKey(keyGenAlg as RsaHashedKeyGenParams, true, [
"sign",
"verify"
]);
if (signatureAlgorithm && ca.internalCa.keyAlgorithm) {
- const sigKeyType = signatureAlgorithm.startsWith("ML-DSA")
- ? "ML-DSA"
- : signatureAlgorithm.startsWith("SLH-DSA")
- ? "SLH-DSA"
- : signatureAlgorithm.split("-")[0];
- $checkSignature(ca.internalCa.keyAlgorithm, sigKeyType, signatureAlgorithm);
+ $checkSignature(ca.internalCa.keyAlgorithm, $getSignatureKeyFamily(signatureAlgorithm), signatureAlgorithm);
}
// For PQC CAs, the signing algorithm is always the CA's own key algorithm
- const caKeyIsPqc = isPqcAlgorithm(ca.internalCa.keyAlgorithm);
- const signingAlg = caKeyIsPqc
- ? keyAlgorithmToAlgCfg(ca.internalCa.keyAlgorithm as CertKeyAlgorithm)
- : signatureAlgorithm
- ? signatureAlgorithmToAlgCfg(signatureAlgorithm, ca.internalCa.keyAlgorithm as CertKeyAlgorithm)
- : keyAlgorithmToAlgCfg(ca.internalCa.keyAlgorithm as CertKeyAlgorithm);
+ const signingAlg =
+ isPqcAlgorithm(ca.internalCa.keyAlgorithm) || !signatureAlgorithm
+ ? keyAlgorithmToAlgCfg(ca.internalCa.keyAlgorithm as CertKeyAlgorithm)
+ : signatureAlgorithmToAlgCfg(signatureAlgorithm, ca.internalCa.keyAlgorithm as CertKeyAlgorithm);
const leafDn = createDistinguishedName({
commonName,
@@ -1853,7 +1834,12 @@ export const internalCertificateAuthorityServiceFactory = ({
if (isPqcAlgorithm(effectiveKeyAlgorithm)) {
const invalidForPqc = [CertKeyUsage.KEY_ENCIPHERMENT, CertKeyUsage.KEY_AGREEMENT, CertKeyUsage.DATA_ENCIPHERMENT];
- selectedKeyUsages = selectedKeyUsages.filter((ku) => !invalidForPqc.includes(ku));
+ const requested = selectedKeyUsages.filter((ku) => invalidForPqc.includes(ku));
+ if (requested.length > 0) {
+ throw new BadRequestError({
+ message: `Key usages ${requested.join(", ")} are not valid for PQC signature-only algorithms`
+ });
+ }
}
const keyUsagesBitValue = selectedKeyUsages.reduce((accum, keyUsage) => accum | x509.KeyUsageFlags[keyUsage], 0);
@@ -2177,21 +2163,15 @@ export const internalCertificateAuthorityServiceFactory = ({
}
if (signatureAlgorithm && ca.internalCa.keyAlgorithm) {
- const sigKeyType = signatureAlgorithm.startsWith("ML-DSA")
- ? "ML-DSA"
- : signatureAlgorithm.startsWith("SLH-DSA")
- ? "SLH-DSA"
- : signatureAlgorithm.split("-")[0];
- $checkSignature(ca.internalCa.keyAlgorithm, sigKeyType, signatureAlgorithm);
+ $checkSignature(ca.internalCa.keyAlgorithm, $getSignatureKeyFamily(signatureAlgorithm), signatureAlgorithm);
}
const effectiveKeyAlgorithm = (keyAlgorithm || ca.internalCa.keyAlgorithm) as CertKeyAlgorithm;
- const signCaKeyIsPqc = isPqcAlgorithm(ca.internalCa.keyAlgorithm);
- const alg = signCaKeyIsPqc
- ? keyAlgorithmToAlgCfg(ca.internalCa.keyAlgorithm as CertKeyAlgorithm)
- : signatureAlgorithm
- ? signatureAlgorithmToAlgCfg(signatureAlgorithm, effectiveKeyAlgorithm)
- : keyAlgorithmToAlgCfg(ca.internalCa.keyAlgorithm as CertKeyAlgorithm);
+
+ const alg =
+ isPqcAlgorithm(ca.internalCa.keyAlgorithm) || !signatureAlgorithm
+ ? keyAlgorithmToAlgCfg(ca.internalCa.keyAlgorithm as CertKeyAlgorithm)
+ : signatureAlgorithmToAlgCfg(signatureAlgorithm, effectiveKeyAlgorithm);
const csrObj = new x509.Pkcs10CertificateRequest(csr);
@@ -2242,8 +2222,12 @@ export const internalCertificateAuthorityServiceFactory = ({
if (keyUsages === undefined && !certificateTemplate) {
if (csrKeyUsageExtension) {
selectedKeyUsages = csrKeyUsages;
+ } else if (dto.isFromProfile) {
+ selectedKeyUsages = [];
+ } else if (isPqcAlgorithm(csrObj.publicKey.algorithm.name)) {
+ selectedKeyUsages = [CertKeyUsage.DIGITAL_SIGNATURE];
} else {
- selectedKeyUsages = dto.isFromProfile ? [] : [CertKeyUsage.DIGITAL_SIGNATURE, CertKeyUsage.KEY_ENCIPHERMENT];
+ selectedKeyUsages = [CertKeyUsage.DIGITAL_SIGNATURE, CertKeyUsage.KEY_ENCIPHERMENT];
}
}
@@ -2271,9 +2255,15 @@ export const internalCertificateAuthorityServiceFactory = ({
selectedKeyUsages = keyUsages;
}
- if (isPqcAlgorithm(effectiveKeyAlgorithm)) {
+ // Use the CSR's actual public key algorithm (not effectiveKeyAlgorithm which defaults to the CA's algo)
+ if (isPqcAlgorithm(csrObj.publicKey.algorithm.name)) {
const invalidForPqc = [CertKeyUsage.KEY_ENCIPHERMENT, CertKeyUsage.KEY_AGREEMENT, CertKeyUsage.DATA_ENCIPHERMENT];
- selectedKeyUsages = selectedKeyUsages.filter((ku) => !invalidForPqc.includes(ku));
+ const requested = selectedKeyUsages.filter((ku) => invalidForPqc.includes(ku));
+ if (requested.length > 0) {
+ throw new BadRequestError({
+ message: `Key usages ${requested.join(", ")} are not valid for PQC signature-only algorithms`
+ });
+ }
}
const keyUsagesBitValue = selectedKeyUsages.reduce((accum, keyUsage) => accum | x509.KeyUsageFlags[keyUsage], 0);
diff --git a/backend/src/services/signer/signer-service.ts b/backend/src/services/signer/signer-service.ts
index 9ce3794921..d669eb0121 100644
--- a/backend/src/services/signer/signer-service.ts
+++ b/backend/src/services/signer/signer-service.ts
@@ -552,6 +552,13 @@ export const signerServiceFactory = ({
kmsService
});
+ if (!certPublicKey) {
+ throw new BadRequestError({
+ message:
+ "Public key derivation is not supported for this certificate's key type. PQC certificates cannot be used as code signers."
+ });
+ }
+
const publicKeyObject = crypto.nativeCrypto.createPublicKey({
key: certPublicKey,
format: "pem",
diff --git a/docs/docs.json b/docs/docs.json
index a6c64ee838..794611fb4e 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -697,6 +697,7 @@
"documentation/platform/pki/concepts/certificate-mgmt",
"documentation/platform/pki/concepts/certificate-lifecycle",
"documentation/platform/pki/concepts/certificate-components",
+ "documentation/platform/pki/concepts/pqc-algorithms",
"documentation/platform/pki/concepts/code-signing"
]
},
diff --git a/docs/documentation/platform/pki/concepts/pqc-algorithms.mdx b/docs/documentation/platform/pki/concepts/pqc-algorithms.mdx
new file mode 100644
index 0000000000..b5bf60b7fe
--- /dev/null
+++ b/docs/documentation/platform/pki/concepts/pqc-algorithms.mdx
@@ -0,0 +1,67 @@
+---
+title: "Post-Quantum Cryptography (PQC)"
+sidebarTitle: "Post-Quantum Algorithms"
+description: "Learn about Infisical's support for post-quantum cryptographic algorithms in certificate management."
+---
+
+## What is Post-Quantum Cryptography?
+
+Post-Quantum Cryptography (PQC) refers to cryptographic algorithms designed to be secure against attacks by quantum computers. Traditional algorithms like RSA and ECDSA rely on mathematical problems (integer factorization, discrete logarithm) that quantum computers could efficiently solve using Shor's algorithm.
+
+PQC algorithms are based on different mathematical foundations, such as lattice problems, that are believed to resist both classical and quantum attacks.
+
+## Supported PQC Algorithms
+
+Infisical supports the following NIST-standardized post-quantum signature algorithms for certificate authorities and certificate issuance:
+
+### ML-DSA (Module-Lattice Digital Signature Algorithm)
+
+ML-DSA (formerly known as CRYSTALS-Dilithium) is a lattice-based digital signature scheme standardized in [FIPS 204](https://csrc.nist.gov/pubs/fips/204/final). It offers a strong balance of security, performance, and key/signature size.
+
+<Note>
+ML-DSA is the recommended PQC algorithm for most use cases due to its efficient key generation, signing, and verification performance.
+</Note>
+
+## Using PQC Algorithms
+
+### Creating a PQC Certificate Authority
+
+You can create a Certificate Authority with a PQC key algorithm through the Infisical UI or API.
+
+<Tabs>
+ <Tab title="Infisical UI">
+ When creating a new Internal CA, select one of the ML-DSA variants from the **Key Algorithm** dropdown:
+ - **ML-DSA-44** for NIST Level 2 security
+ - **ML-DSA-65** for NIST Level 3 security
+ - **ML-DSA-87** for NIST Level 5 security
+ </Tab>
+ <Tab title="API">
+ When creating a CA via the API, set the `keyAlgorithm` field to one of:
+ - `ML-DSA-44`
+ - `ML-DSA-65`
+ - `ML-DSA-87`
+
+ ```bash
+ curl --request POST \
+ --url https://your-infisical-instance.com/api/v1/pki/ca \
+ --header 'Authorization: Bearer <access-token>' \
+ --header 'Content-Type: application/json' \
+ --data '{
+ "projectSlug": "your-project",
+ "type": "root",
+ "commonName": "My PQC Root CA",
+ "keyAlgorithm": "ML-DSA-65",
+ "notAfter": "2035-01-01"
+ }'
+ ```
+ </Tab>
+</Tabs>
+
+## Key Differences from Classical Algorithms
+
+When using PQC algorithms, keep the following constraints in mind:
+
+- **Signature-only**: PQC algorithms are digital signature algorithms. Key usages like `keyEncipherment`, `keyAgreement`, and `dataEncipherment` are not valid for PQC certificates. Requesting these usages will return an error.
+- **No PKCS#12 export**: PQC certificates cannot be exported in PKCS#12 (.p12/.pfx) format. Use PEM format instead.
+- **Larger keys and signatures**: PQC keys and signatures are significantly larger than RSA/ECDSA equivalents. Plan for increased certificate sizes in bandwidth-constrained environments.
+- **OpenSSL 3.5+ required**: PQC operations require OpenSSL 3.5 or later. Infisical ships with a dedicated PQC-capable OpenSSL installation for these operations.