X.509 certificate with a post-quantum key
A certificate using ML-DSA, SLH-DSA or ML-KEM keys.
Why it's safe
Post-quantum certificates are safe against known quantum attacks. Check that every relying party can parse them: many TLS clients, HSMs and certificate tools do not support them yet, and chains with ML-DSA signatures are several kilobytes larger.
- Used for
- Certificate
- Family
- Certificate (post-quantum)
- Standards
- RFC 9881 (ML-DSA in X.509), RFC 9935 (ML-KEM in X.509)
Migration guides
How to adopt X.509 certificate with a post-quantum key. Pick your stack.
OpenSSL 3.5+ (certificates) · configPrivate PKI: issue ML-DSA certificates with OpenSSL 3.5+ (RFC 9881), and know where they workExperimental
Why
Certificates authenticate servers, clients, devices and code. A quantum computer could recover a CA's or server's private key from its RSA/ECDSA public key and impersonate it. RFC 9881 standardises ML-DSA keys and signatures in X.509, and OpenSSL 3.5+ can create such certificates. The public web is not there yet: publicly trusted CAs do not issue ML-DSA certificates and browsers are exploring other designs (for example Merkle Tree Certificates). Private PKI (service mesh, IoT, internal mTLS, code signing) is where you can start, especially for long-lived roots.
Steps
- Inventory certificates and their lifetimes:
npx -y pqe-cli scan .finds certificates and keys in repositories; also export from your CA and secret stores. - Start with a lab CA hierarchy using ML-DSA-87 (root) and ML-DSA-65 (intermediate / leaf), and test every relying party.
- Keep classical chains in parallel until all clients can validate ML-DSA (dual hierarchies, or separate endpoints).
- Plan HSM support for the root key before production.
Before
openssl req -x509 -newkey rsa:2048 -nodes -keyout ca.key -out ca.pem -days 3650 -subj "/CN=Example Root"After
# Root CA
openssl req -x509 -newkey ML-DSA-87 -nodes -keyout root.key -out root.pem \
-days 3650 -subj "/CN=Example PQ Root" \
-addext "basicConstraints=critical,CA:TRUE" -addext "keyUsage=critical,keyCertSign,cRLSign"
# Leaf key + CSR, signed by the root
openssl req -new -newkey ML-DSA-65 -nodes -keyout leaf.key -out leaf.csr -subj "/CN=svc.internal"
openssl x509 -req -in leaf.csr -CA root.pem -CAkey root.key -days 90 -out leaf.pem \
-extfile <(printf "subjectAltName=DNS:svc.internal\nextendedKeyUsage=serverAuth")
openssl x509 -in leaf.pem -noout -text | grep "Signature Algorithm" # ML-DSA-87 (issuer's)
openssl verify -CAfile root.pem leaf.pemGotchas
- Client support is the bottleneck. TLS stacks, language runtimes, proxies, browsers and HSMs must all understand ML-DSA. Today that means OpenSSL 3.5+, BoringSSL/AWS-LC-based stacks, Go 1.27+ (
crypto/x509, TLS 1.3 signature schemes), pyca/cryptography 49+, .NET 10 (with OS support) and others; test each. - ML-DSA in TLS needs TLS 1.3.
- Size. Each ML-DSA-65 certificate carries a ~1.9 KB public key and a 3.3 KB signature; a three-certificate chain adds roughly 10-15 KB to every full handshake. Keep chains short.
- Composite / hybrid certificates (ML-DSA combined with RSA or ECDSA in one certificate) are being standardised in the IETF LAMPS working group; tooling support varies.
- Revocation and CT infrastructure (OCSP responders, CRL tooling, logs) must also handle the new algorithms.
Verify
openssl verify as above, then connect each real client (curl, your service mesh sidecar, your SDKs) to a test server presenting the ML-DSA chain.