Get started
Guide · updated 4 Dec 2026

Enable hybrid post-quantum TLS (X25519MLKEM768)

One config line at the edge protects every session against harvest-now-decrypt-later. Here's how to turn it on and prove it works.

What you're enabling

X25519MLKEM768 combines classical X25519 with ML-KEM-768 (FIPS 203). The session is secure if either holds. It's standardized for TLS 1.3 in RFC 10024 (Aug 2026), alongside SecP256r1MLKEM768 and SecP384r1MLKEM1024 for P-curve and CNSA-aligned deployments.

Group Client share Server share Use
X25519MLKEM768 1,216 B 1,120 B Default for web and APIs
SecP256r1MLKEM768 ~1,249 B ~1,153 B Where P-256 is mandated
SecP384r1MLKEM1024 ~1,665 B ~1,665 B High assurance / CNSA 2.0 alignment

TLS 1.3 is a hard prerequisite. TLS 1.2 has no post-quantum key exchange path. If an endpoint can't do 1.3, see legacy systems.

1. Edge first: CDN and load balancers

Most CDNs and major cloud load balancers already negotiate hybrid PQ with modern browsers. Check that it's enabled on your edge and on the edge-to-origin hop — the second leg is often still classical.

2. nginx (built against OpenSSL 3.5+)

server {
    listen 443 ssl;
    http2 on;
    ssl_protocols  TLSv1.3 TLSv1.2;
    # Prefer the hybrid; keep classical fallbacks for old clients
    ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
}

Confirm the binary's OpenSSL: nginx -V 2>&1 | grep -o 'OpenSSL [0-9.]*'.

3. Go services (Go 1.24+)

Go's crypto/tls enables X25519MLKEM768 by default when CurvePreferences is nil. If you pin curves, include it explicitly:

cfg := &tls.Config{
    MinVersion:       tls.VersionTLS13,
    CurvePreferences: []tls.CurveID{tls.X25519MLKEM768, tls.X25519},
}

4. Test it

# OpenSSL 3.5+ client
openssl s_client -connect api.example.com:443 -groups X25519MLKEM768 </dev/null 2>/dev/null | grep -i group
# → Negotiated TLS1.3 group: X25519MLKEM768

# Force classical to confirm fallback still works
openssl s_client -connect api.example.com:443 -groups X25519 </dev/null 2>/dev/null | grep -i group

Track the KPI: % of external TLS connections negotiating hybrid PQ. Pull it from edge logs, not from a one-off scan.

5. What breaks (test these before rollout)

Symptom Likely cause Fix
Handshake timeouts from some networks Middlebox/IDS/WAF drops ClientHello > 1 packet Update or bypass the device; vendors have patches
Fallback to classical everywhere TLS-inspecting proxy re-terminates with an old stack Upgrade proxy; check edge-to-origin leg
Appliance can't connect Embedded TLS library without TLS 1.3 Front with a PQ-capable proxy
Client errors in old services Java/.NET/Go/Python runtime too old for hybrid groups Upgrade runtime; keep classical fallback during transition
Hard failures in custom code Hard-coded group IDs or key sizes Remove assumptions; see crypto-agility

6. What this doesn't cover

Hybrid key exchange protects confidentiality. Your certificates are still RSA/ECDSA; post-quantum authentication is a separate, later migration — see PKI & code signing.