tldrTLS
Colour theme

Post-quantum key exchange

Encrypted traffic recorded today could be readable years from now.

Do it now

Offer hybrid key exchange to TLS 1.3 clients. Check whether your server already does.

Added Updated

What to do

Key exchange is how a client and server agree on the secret that protects a connection. If the data needs to stay private for years, the choice you make today matters.

Offer X25519MLKEM768 as your first-choice key exchange group, and keep X25519 and P-384 behind it for older clients. We no longer list P-256.

It is a hybrid: it runs the classic X25519 exchange and the post-quantum ML-KEM-768 together, so the session stays private unless both are broken. It became an IETF Proposed Standard in August 2026 (RFC 10024). OpenSSL 3.5 and later offer it by default, and Chrome already sends it.

The reason to hurry is that an attacker doesn't need a quantum computer today. They only need to record your traffic now and wait.

On 2 December 2026 the NSA told its own systems to make this move immediately, and named this hybrid as acceptable. See the December 2026 warnings.

A client that can't do the hybrid falls back to plain X25519 or P-384. X25519 is one of the 256-bit curves the warnings point at, so a fallback connection may have less protection than you think. We keep it because many clients that lack the hybrid offer nothing else on their first try. Log the negotiated group to see how many clients still fall back.

It only works in TLS 1.3. If you still negotiate TLS 1.2 with a client, that connection gets no post-quantum protection. See protocol versions.

How to check

With OpenSSL 3.5 or later:

openssl s_client -connect example.com:443 -groups X25519MLKEM768 -brief </dev/null

You want to see this line:

Negotiated TLS1.3 group: X25519MLKEM768

If the handshake fails, try an ordinary TLS 1.3 connection from the same client. If that works, check which groups your server offers and whether anything on the network interferes with this handshake.

How to fix it

Your TLS library must support the group first. For OpenSSL that means 3.5 or later.

nginx:

ssl_ecdh_curve X25519MLKEM768:X25519:secp384r1;

Put that line in the http block, not inside one server block. nginx chooses the group before it knows which hostname the client wants, so a list set on one server can be ignored. See the full nginx config.

Apache:

SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:secp384r1

HAProxy:

ssl-default-bind-curves X25519MLKEM768:X25519:secp384r1

Caddy and Go 1.24 or later turn it on by default. Most large CDNs do too, so check before you change anything.

The first handshake message gets about 1,200 bytes bigger. Old middleboxes that choke on a large ClientHello are the usual cause of trouble, so run the check from inside any network you care about.

Sources

  1. RFC 10024: Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3 fetched
  2. DigiCert: Recommendations for post-quantum TLS migration fetched
  3. IETF draft: PQC recommendations for TLS-based applications fetched
  4. Cloudflare: post-quantum cryptography support fetched

Changelog