System configurations
Configuration changes by system.
Edge CDN & Load Balancer TLS (`X25519MLKEM768`)
Hybrid key exchange combines classical X25519 and NIST FIPS 203 ML-KEM-768 inside the TLS 1.3 key schedule (codepoint 0x11ec). Handshake size grows by ~1.2 KB and remains backward-compatible with older clients.
# NGINX / Ingress Controller
ssl_protocols TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:secp256r1;
# AWS Application Load Balancer (closes CDN-to-Origin gap)
resource "aws_lb_listener" "https" {
port = 443
protocol = "HTTPS"
ssl_policy = "ELBSecurityPolicy-TLS13-1-2-PQ-2025-09"
certificate_arn = aws_acm_certificate.default.arn
}
CDN-to-origin traffic
Enabling PQ-TLS at Cloudflare only protects the browser-to-CDN leg. Unless your AWS ALB or origin ingress also enables X25519MLKEM768, traffic between the CDN and your cloud VPC crosses public peering links over classical X25519.
Classical certificates in TLS 1.3
In TLS 1.3, the certificate signs the live handshake transcript; it does not encrypt the session key. Pairing X25519MLKEM768 with an existing ECDSA certificate protects recorded traffic.
OpenSSH Bastions, Servers & Automation
OpenSSH 9.9+ defaults to NIST mlkem768x25519-sha256 (and 9.0+ supports [email protected]), but CIS/STIG hardening templates routinely overwrite KexAlgorithms with classical curves.
# Enforce hybrid post-quantum key exchange only KexAlgorithms mlkem768x25519-sha256,[email protected] # 256-bit symmetric ciphers (already post-quantum safe) Ciphers [email protected],[email protected] MACs [email protected],[email protected]
Go and Python SSH clients
Before removing curve25519-sha256, verify CI workers using golang.org/x/crypto/ssh or Python Paramiko have been updated to releases supporting mlkem768x25519-sha256.
Verify active sshd config
Run sudo sshd -T | grep kexalgorithms on every host to confirm no drop-in file under /etc/ssh/sshd_config.d/ re-enables classical Diffie-Hellman.
JWTs, Sessions & Webhooks (`RS256` → `HS256`)
An ML-DSA-65 signature is 3,309 bytes raw (~4.4 KB Base64), breaking 4 KB cookie and 8 KB HTTP header limits. For tokens issued and verified inside your own backend boundary, switch to 256-bit HS256 HMAC.
const HMAC_SECRET = Buffer.from(process.env.JWT_HMAC_256_HEX!, 'hex'); // 32 bytes
export function signSession(payload: object): string {
return jwt.sign(payload, HMAC_SECRET, {
algorithm: 'HS256',
expiresIn: '15m'
});
}
export function verifySession(token: string) {
// Pin algorithms: ['HS256'] to block alg:none and RSA key-confusion attacks
return jwt.verify(token, HMAC_SECRET, { algorithms: ['HS256'] });
}
Internal HMAC properties
Symmetric 256-bit HMAC exposes no public key in JWKS to invert, adds only 32 bytes to the token, verifies in sub-microsecond time, and is immune to Shor's algorithm.
External OIDC (Okta / Google / Entra)
Where third-party public keys are required, cap external ID token lifetimes to 15 minutes and exchange them immediately for an internal HS256 session cookie.
Go, Rust, Node.js & Python Outbound TLS
Ensure your application containers offer X25519MLKEM768 when acting as TLS clients calling external APIs (LLM providers, Stripe, AWS S3/KMS) or internal microservices.
// Go 1.24+: X25519MLKEM768 is enabled by default unless CurvePreferences is overridden
tlsCfg := &tls.Config{
MinVersion: tls.VersionTLS13,
CurvePreferences: []tls.CurveID{tls.X25519MLKEM768, tls.X25519},
}
// Rust: Cargo.toml -> rustls = { version = "0.23", features = ["aws-lc-rs", "prefer-post-quantum"] }
# Node / Python / JVM containers (/etc/ssl/openssl.cnf on OpenSSL 3.5+)
MinProtocol = TLSv1.3
Groups = X25519MLKEM768:X25519:P-256
PostgreSQL, Redis, S3 & Cloud KMS
AES-256 disk volumes and database snapshots require zero re-encryption. Focus on database wire TLS handshakes and eliminating client-side static RSA envelope key wrapping.
ssl = on ssl_min_protocol_version = 'TLSv1.3' ssl_groups = 'X25519MLKEM768:X25519:prime256v1'
WireGuard Mesh Overlays & IPsec
WireGuard's Noise_IKpsk2 handshake includes a 256-bit PresharedKey slot specifically designed to add post-quantum resistance on top of Curve25519.
wg genpsk > /etc/wireguard/pq.psk # In /etc/wireguard/wg0.conf under [Peer]: PresharedKey = /etc/wireguard/pq.psk
Auto-Updaters & Binary Signing (`Ed25519 + ML-DSA-65`)
Protect desktop apps (Tauri, Electron) and CLI self-updaters against real-time signature forgery by requiring both classical Ed25519 and FIPS 204 ML-DSA-65 signatures to pass.
pub fn verify_update_manifest(payload: &[u8], sigs: &Sigs) -> Result<(), Error> {
ED25519_ROOT.verify_strict(payload, &sigs.ed25519)?;
MLDSA65_ROOT.verify(payload, &sigs.mldsa65)?;
Ok(())
}
Internal mTLS and public certificates
Use ML-DSA-65 certificates today for internal service-mesh mTLS where you control both trust stores. For public browsers, keep ECDSA leaf certificates paired with X25519MLKEM768 key exchange and 7-day ACME renewal.
openssl req -x509 -new -newkey mldsa65 -keyout internal-ca.key -out internal-ca.crt \ -nodes -subj "/CN=Internal Post-Quantum mTLS CA" -days 365