X.509 certificate with an Ed25519 key
A certificate whose key or signature uses Ed25519, common in private PKI, IoT and service meshes.
Why it's at risk
Ed25519 is broken by Shor's algorithm, so the certificate's key can be recovered from its public half. Plan ML-DSA certificates (RFC 9881) for private PKI.
Move to
- BestML-DSA-65The recommended general-purpose post-quantum signature (NIST Security Category 3): 1952-byte public key, 3309-byte signature.
- OrSLH-DSA (SPHINCS+)A stateless hash-based signature standard whose security rests only on hash functions; tiny keys (32-64 bytes) but large, slow signatures (about 7.8 KB to 50 KB).
- Used for
- Certificate
- Family
- Certificate (elliptic curve)
- Classical security
- 128 bits
- Against a quantum computer
- Broken
- Standards
- RFC 5280, RFC 8410
Migration guides
Concrete code changes to move off X.509 certificate with an Ed25519 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.