Skip to content

X25519MLKEM768: How to Enable and Test Post-Quantum TLS

Turn on X25519MLKEM768 hybrid post-quantum TLS in nginx, Apache, Go, Java, Node and cloud load balancers, then prove it works with openssl and curl.

Qunoq Research23 min read

To enable post-quantum TLS, make your server negotiate the hybrid key exchange group X25519MLKEM768 (codepoint 0x11EC, standardized in RFC 10024) over TLS 1.3. On most stacks that means upgrading the TLS library (OpenSSL 3.5+, Go 1.24+, JDK 27, Node 24.5+/22.20+) and then removing any hand-written curve list that leaves it out. Verify with openssl s_client -connect host:443 -groups X25519MLKEM768 -brief and look for Negotiated TLS1.3 group: X25519MLKEM768.

TL;DR

  • Chrome, Edge, Firefox, Safari (26+), Go, OpenSSL 3.5+, Node 24.5+ and JDK 27 already offer X25519MLKEM768 by default. The server side is usually what's missing.
  • The most common reason a freshly upgraded server still isn't post-quantum: an old ssl_ecdh_curve X25519:prime256v1:secp384r1; line (or its Apache, HAProxy or Java equivalent) that overrides the new library default.
  • Check every TLS terminator in the path. AWS ALBs created from the CLI, CloudFormation or CDK still default to ELBSecurityPolicy-2016-08, which has no post-quantum groups.
  • This protects session keys against "harvest now, decrypt later". Your certificates and handshake signatures are still RSA or ECDSA, and that's a separate migration.
  • The ClientHello grows from about 300 bytes to about 1.5 KB. Broken middleboxes and legacy TLS stacks that can't read it are the main operational risk.

What is X25519MLKEM768?

X25519MLKEM768 is a TLS 1.3 "supported group" that runs two key exchanges in one handshake: classical X25519 elliptic-curve Diffie-Hellman and ML-KEM-768, the lattice-based KEM NIST standardized in FIPS 203. The two shared secrets are concatenated and fed into the normal TLS 1.3 key schedule, so an attacker has to break both to recover the session keys.

It was specified in the IETF draft draft-ietf-tls-ecdhe-mlkem, which was published as RFC 10024 (Proposed Standard) in August 2026. It applies the generic hybrid framework from RFC 9954 ("Hybrid Key Exchange in TLS 1.3", an Informational RFC from July 2026) to ML-KEM. RFC 10024 defines three groups:

GroupCodepointComponentsTypical use
X25519MLKEM7684588 (0x11EC)ML-KEM-768 + X25519The one browsers and most libraries send by default
SecP256r1MLKEM7684587 (0x11EB)ML-KEM-768 + P-256FIPS-oriented deployments
SecP384r1MLKEM10244589 (0x11ED)ML-KEM-1024 + P-384CNSA 2.0-oriented deployments

Why the ClientHello gets bigger

Per RFC 10024 sections 4.1 to 4.3, the key shares are fixed-length.

ShareContentsSize
Client key_shareML-KEM-768 encapsulation key (1,184 bytes) + X25519 public key (32 bytes)1,216 bytes
Server key_shareML-KEM-768 ciphertext (1,088 bytes) + X25519 public key (32 bytes)1,120 bytes
Shared secretML-KEM secret (32) + X25519 secret (32)64 bytes

Compare that with 32 bytes for a plain X25519 share. Most clients also send a plain X25519 share alongside the hybrid one so they don't pay a round trip against servers that only do classical groups, so the ClientHello carries both.

We measured it on 2026-11-18 with OpenSSL 3.6.1's -msg output against cloudflare.com:

Client groupsClientHelloServerHello
OpenSSL 3.6 default (X25519MLKEM768 + X25519 shares)1,540 bytes1,210 bytes
-groups X25519 only306 bytes122 bytes

A 1.5 KB ClientHello no longer fits in one TCP segment on a standard 1,500-byte MTU path. Any correct TLS stack copes. It's also the root of almost every compatibility bug you'll hit (more below).

One oddity: the name says X25519 first, but the wire format puts the ML-KEM part first. RFC 10024 notes the order is reversed and puts it down to "historical reasons". It happens to suit FIPS. Section 5 of the RFC explains that NIST SP 800-56C allows combining two shared secrets only if the first comes from an approved scheme, and ML-KEM is approved while X25519 isn't. (In the two SecP groups, the approved ECDH part goes first.)

X25519Kyber768Draft00 (0x6399) is dead

Before FIPS 203 was final, Chrome and Cloudflare shipped a pre-standard hybrid called X25519Kyber768Draft00 on codepoint 0x6399. Chrome shipped it in Chrome 124 (April 2024), on by default for desktop. The final ML-KEM changed enough that it is not wire-compatible with that Kyber round-3 version, so Google moved to 0x11EC in Chrome 131 and dropped 0x6399. In Google's words, "Chrome will not support Kyber and ML-KEM at the same time."

If you still have X25519Kyber768Draft00, x25519_kyber768 or an OQS provider config pinning it, delete it. Current browsers won't negotiate it, and all you get is a bigger ClientHello for nothing.

What post-quantum key exchange does and doesn't protect

X25519MLKEM768 protects confidentiality. An adversary who records your TLS traffic today and gets a cryptographically relevant quantum computer later can't recover the session keys, because they'd also have to break ML-KEM. That's the "harvest now, decrypt later" threat, and it's why key exchange is migrating first.

It does not change authentication. The server still proves its identity with an RSA or ECDSA certificate and a classical handshake signature. Look at the output from our test against google.com further down: the group is X25519MLKEM768, and the signature line still says ecdsa_secp256r1_sha256. A quantum attacker could forge those signatures in real time, but only once such a machine exists, and forging a signature later doesn't decrypt traffic you recorded today. Post-quantum certificates (ML-DSA, or Chrome's planned Merkle Tree Certificates per Cloudflare's support tracker) are a separate, later project. So is the rest of your inventory: code-level RSA and ECDH, SSH, VPNs and signed artifacts. Our migration roadmap covers the order we'd do it in, and this guide covers finding the classical crypto in your code.

Which clients support X25519MLKEM768?

Clients matter because a server-side change only helps when the client offers the group. As of November 2026, every major browser does by default.

ClientDefault sinceSource
Chrome131 (November 2024)Google Security Blog
Edge131Cloudflare PQC support tracker
Firefox132 desktop, 145 Android; HTTP/3 from 135Firefox 135 notes, Mozilla bug 1919097, Cloudflare tracker
Safari and Apple OSesiOS 26, iPadOS 26, macOS Tahoe 26, visionOS 26 (system TLS)Apple: Prepare your network for quantum-secure encryption in TLS
OpenSSL (so curl, Python, Ruby, PHP builds that link it)3.5.0 (April 8, 2025)OpenSSL 3.5 release notes
Go crypto/tls1.24crypto/tls docs
Java (OpenJDK)JDK 27 (September 15, 2026; JEP 527)JEP 527
Node.js24.5.0 and 22.20.0 (bundle OpenSSL 3.5)v24.5.0 release, v22.20.0 release
Python sslWhatever OpenSSL it links; group control APIs in 3.15Python 3.15 ssl docs
rustls0.23.27Cloudflare tracker

Two caveats from our own testing on a Mac on 2026-11-18. Apple's bundled /usr/bin/curl (8.7.1, LibreSSL 3.3.6) and /usr/bin/python3 (3.9.6, LibreSSL 2.8.3) both failed to connect to a local server that only accepted X25519MLKEM768, while Homebrew's Python 3.11 (linked to OpenSSL 3.6.1), Node 24.14.1 (bundled OpenSSL 3.5.5) and Go 1.27.3 all succeeded. Apple's change applies to its own system TLS stack. It doesn't upgrade every TLS library on the box, and those two binaries link LibreSSL. Same story on Linux: your curl is only as post-quantum as the libssl it links.

How to enable post-quantum TLS on your server

Every stack follows the same four steps.

  1. Get a TLS library that implements the group (OpenSSL 3.5+, BoringSSL, AWS-LC, Go 1.24+, JDK 27).
  2. Make sure TLS 1.3 is enabled. Hybrid groups don't exist in TLS 1.2.
  3. Either leave the group list at the library default, or put X25519MLKEM768 first in your explicit list.
  4. Verify from outside, through every proxy and load balancer in the path.

OpenSSL 3.5+ defaults

OpenSSL 3.5 changed the default supported-groups list to prefer hybrid groups and to send X25519MLKEM768 and X25519 key shares (release notes). The literal default, from ssl/t1_lib.c on the 3.5 branch, is:

?*X25519MLKEM768 / ?*X25519:?secp256r1 / ?X448:?secp384r1:?secp521r1 / ?ffdhe2048:?ffdhe3072

The syntax is new in 3.5 and worth understanding, because you can use it in nginx and Apache too (SSL_CTX_set1_groups_list(3)):

  • : separates groups, / separates tuples of groups the server treats as comparable in security.
  • * marks groups a client sends a key share for (servers ignore it).
  • ? means "skip this group if the implementation is missing" instead of failing.
  • - removes a group; DEFAULT expands to the built-in list.

The tuple part is what makes the default safe. A TLS 1.3 server picks from the highest-preference tuple first. If the client supports a group in that tuple but didn't send a key share for it, OpenSSL sends a HelloRetryRequest and asks for it, rather than settling for the X25519 share the client did send.

So the first rule for any OpenSSL-based server: if you're on OpenSSL 3.5+ and you don't set a group list, you already have post-quantum key exchange.

If you do build lists from DEFAULT on the server side (say, DEFAULT:-ffdhe2048), run 3.5.6 or later. Earlier 3.5 releases lost the tuple structure when DEFAULT was used in a server group list (CVE-2026-2673, per the 3.5 release notes).

nginx: ssl_ecdh_curve

nginx passes ssl_ecdh_curve straight to OpenSSL's SSL_CTX_set1_curves_list(). The default is auto, which uses OpenSSL's built-in list.

  1. Check what nginx is linked against:

    nginx -V 2>&1 | grep -i openssl
    # want: built with OpenSSL 3.5.x or later (and "running with" the same or later)
    
  2. Find any explicit curve list:

    grep -rn "ssl_ecdh_curve\|ssl_conf_command.*\(Groups\|Curves\)" /etc/nginx/
    
  3. Either delete it (falls back to auto) or rewrite it:

    # nginx built with OpenSSL 3.5+
    ssl_protocols TLSv1.2 TLSv1.3;
    
    # Option A (recommended): use OpenSSL's default list
    ssl_ecdh_curve auto;
    
    # Option B: explicit, with PQ in its own top-preference tuple
    # ssl_ecdh_curve X25519MLKEM768/X25519:prime256v1:secp384r1;
    

    Keep prime256v1 in any explicit list if you serve an ECDSA P-256 certificate. The nginx docs warn that ECDSA certificates only work if the list includes the curves they use.

  4. nginx -t && systemctl reload nginx, then test from outside.

If nginx is linked against OpenSSL older than 3.5, the group name is unknown and nginx -t fails with SSL_CTX_set1_curves_list("...") failed (source). That's a good failure: it tells you the upgrade didn't happen.

The flat-list trap (tested)

The flat list X25519MLKEM768:X25519:prime256v1 looks right, and against browsers it works, because browsers send the hybrid share first. But all those groups are one tuple, and inside a tuple OpenSSL prefers avoiding a round trip over preference order. A client that supports the hybrid but only sends an X25519 share gets X25519. We ran openssl s_server (OpenSSL 3.6.1, the same group parser nginx uses) with different server lists on 2026-11-18:

Server group listClient offerResult
X25519:prime256v1:secp384r1 (a common "hardened" config)OpenSSL default (hybrid + X25519 shares)X25519: the upgrade did nothing
X25519MLKEM768:X25519:prime256v1OpenSSL defaultX25519MLKEM768
X25519MLKEM768:X25519:prime256v1supports hybrid, sends only an X25519 shareX25519, no retry
X25519MLKEM768/X25519:prime256v1supports hybrid, sends only an X25519 shareHelloRetryRequest, then X25519MLKEM768
X25519MLKEM768 onlyX25519 and P-256 onlyhandshake failure (alert 40)

The first row is the one we see most in real configs: Mozilla-style hardening snippets copied years ago that pin X25519:prime256v1:secp384r1. After the OpenSSL upgrade, nothing changes until someone deletes that line.

For logging, nginx 1.27.5 fixed the $ssl_curve and $ssl_curves variables "when using pluggable curves in OpenSSL" (CHANGES), which is how OpenSSL 3.5 implements the ML-KEM hybrids. On 1.27.5+ you can add $ssl_curve to a log_format and count PQ handshakes:

log_format tls '$remote_addr "$request" $ssl_protocol $ssl_curve';

Apache httpd: SSLOpenSSLConfCmd

mod_ssl has no dedicated groups directive. Use SSLOpenSSLConfCmd, which hands a command to OpenSSL's SSL_CONF layer. Groups is the current name and Curves is a synonym:

# httpd 2.4 with mod_ssl linked against OpenSSL 3.5+
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768/X25519:prime256v1:secp384r1

As with nginx, the cleanest option is to not set it at all on OpenSSL 3.5+. Check the linked version with httpd -V or the mod_ssl startup line in the error log. We didn't run Apache for this article; the directive semantics are OpenSSL's, which we did test.

HAProxy

HAProxy sets groups with ssl-default-bind-curves (frontends) and ssl-default-server-curves (backends) in global, or curves per bind/server line. HAProxy's own July 2026 guide uses:

global
    ssl-default-bind-options   ssl-min-ver TLSv1.3
    ssl-default-server-options ssl-min-ver TLSv1.3
    ssl-default-bind-curves    X25519MLKEM768:SecP256r1MLKEM768:X25519:P-384:P-256
    ssl-default-server-curves  X25519MLKEM768:SecP256r1MLKEM768:X25519:P-384:P-256

That guide targets HAProxy Enterprise 3.2+ and HAProxy Community 3.3+ in HAProxy Technologies' packages, which are built on AWS-LC (for Community, the guide points to its Performance Packages). Run haproxy -vv and check the crypto library line. If your HAProxy is built against OpenSSL 3.5+ instead, the curve string goes to the same OpenSSL parser we tested above; HAProxy's guide doesn't cover that build, and we didn't test it. Note the guide sets TLS 1.3 as the minimum; you don't need to, since TLS 1.2 clients will just fall back to classical ECDHE.

Caddy

Caddy 2.10.0 (April 2025) enables x25519mlkem768 by default, through Go's crypto/tls. Don't set curves unless you have to. If you do, keep the hybrid in the list (tls directive docs):

example.com {
    tls {
        curves x25519mlkem768 x25519 secp256r1
    }
}

Envoy (BoringSSL)

Envoy's BoringSSL has supported X25519MLKEM768 for a while, but it only became part of the default ecdh_curves in Envoy 1.40.0 (released October 13, 2026), for both downstream and upstream connections, FIPS builds included (1.40.0 changelog). The opt-out is the runtime flag envoy.reloadable_features.pqc_default_ecdh_curves=false.

On older Envoy, or if you set ecdh_curves yourself, list it explicitly (Envoy TLS docs):

transport_socket:
  name: envoy.transport_sockets.tls
  typed_config:
    "@type": type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.DownstreamTlsContext
    common_tls_context:
      tls_params:
        ecdh_curves:
        - X25519MLKEM768
        - X25519
        - P-256

Envoy 1.39.0 added the %DOWNSTREAM_TLS_GROUP% and %UPSTREAM_TLS_GROUP% substitution commands for access logs (1.39.0 changelog), which is the easiest way to measure adoption in an Istio or Envoy Gateway mesh.

Go crypto/tls

From Go 1.24, the default CurvePreferences includes X25519MLKEM768; from Go 1.26 it also includes SecP256r1MLKEM768 and SecP384r1MLKEM1024 (Config.CurvePreferences). Leave the field nil. If you must set it, include the hybrid (Go ignores the order and applies its own preference):

// Go 1.24+
cfg := &tls.Config{
    MinVersion: tls.VersionTLS12,
    // nil CurvePreferences = default, which includes X25519MLKEM768.
    // If you set it explicitly, include the hybrid:
    CurvePreferences: []tls.CurveID{tls.X25519MLKEM768, tls.X25519, tls.CurveP256},
}

// Go 1.25+: check what was negotiated
st := conn.ConnectionState()
fmt.Println(st.CurveID) // "X25519MLKEM768"

With CurvePreferences left nil, GODEBUG=tlsmlkem=0 turns it off (and tlssecpmlkem=0 the SecP hybrids on 1.26+), which is handy for an emergency rollback without a rebuild. ConnectionState.CurveID was added in Go 1.25 (per api/go1.25.txt in the Go distribution). In Go 1.27's FIPS 140-3 mode, the allowed list in crypto/tls/defaults_fips140.go includes X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, but not plain X25519.

Our Go 1.27.3 client got X25519MLKEM768 from cloudflare.com and X25519 from github.com with zero configuration.

Java: JDK 27 and JEP 527

JEP 527, "Post-Quantum Hybrid Key Exchange for TLS 1.3", shipped in JDK 27 (GA September 15, 2026). It adds X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 to SunJSSE, puts X25519MLKEM768 at the front of the default named groups, and has clients send both X25519MLKEM768 and x25519 key shares. JDK 26 and earlier have no ML-KEM in JSSE, so on those you need a third-party provider or a proxy in front.

The catch, called out in the Inside Java heads-up: you only get it by default if you don't override the named groups. Search your startup scripts and Helm charts for jdk.tls.namedGroups:

# JDK 27+: comma-separated, most preferred first
java -Djdk.tls.namedGroups="X25519MLKEM768,x25519,secp256r1,secp384r1" -jar app.jar

Programmatically, SSLParameters.setNamedGroups(...) does the same per socket or engine.

Node.js

Node.js 24.5.0 (July 2025) and 22.20.0 (September 2025) bundle OpenSSL 3.5, so the default ecdhCurve: 'auto' already includes X25519MLKEM768 for official builds. Distro builds that link a system OpenSSL depend on that OpenSSL. Node 20 bundles OpenSSL 3.0 (3.0.19 in v20.20.2) and doesn't support it.

// Node 24.5+ / 22.20+
const tls = require('node:tls');
const server = tls.createServer({
  key, cert,
  minVersion: 'TLSv1.2',
  ecdhCurve: 'X25519MLKEM768:X25519:P-256', // or leave unset ('auto')
});

One quirk we hit: on Node 24.14.1, socket.getEphemeralKeyInfo() returns {} when the hybrid is negotiated (it returned {"type":"ECDH","name":"X25519","size":253} for a classical handshake with github.com). An empty object there is a decent sign you got the hybrid, but don't build monitoring on it. Verify from outside with openssl s_client.

Python

Python's ssl module uses OpenSSL's defaults, so a Python linked against OpenSSL 3.5+ already offers X25519MLKEM768 (python3 -c "import ssl; print(ssl.OPENSSL_VERSION)"). Python 3.15 adds SSLContext.set_groups(), get_groups() and SSLSocket.group(), so you can finally configure and log the negotiated group from Python itself.

Managed load balancers and CDNs

If a load balancer or CDN terminates TLS, its settings decide what the client gets, not your nginx. And each leg (client to edge, edge to origin) is a separate TLS connection with separate support.

ProviderClient to edgeEdge to originWhat to do
AWS ALB / NLBOnly with a -PQ- policy; console default is ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09PQ policies use ELBSecurityPolicy-TLS13-1-0-PQ-2025-09 for backendsSet the policy explicitly in IaC
Amazon CloudFrontOn for TLS 1.3 viewers under all security policies (X25519MLKEM768, SecP256r1MLKEM768)Not stated in the viewer docsNothing; verify
Google Cloud LB (Application LBs, proxy NLBs)On by default since October 2026; DEFERRED opt-out until October 2027Not supported (frontend only)Don't defer it
Azure Front DoorGA November 2026; the default Standard key exchange policy includes X25519MLKEM768Not coveredKeep Standard, or keep the hybrids in a Custom policy
Azure App Service / FunctionsPhased, platform-managed rollout announced November 2026Internal hop not coveredNothing; verify
CloudflareOn for all TLS 1.3 trafficAutomatic key exchange, on for all zones; needs Full or Full (strict)Make the origin support it
FastlyAutomatic for TLS 1.3 from April 2025 rolloutNot statedVerify
AkamaiOn by default on the Enhanced TLS network (GA August 2026)Opt-in "PQC to Origin" behavior (GA June 2026)Enable the origin behavior

Notes and sources, row by row:

  • AWS ALB and NLB. The ALB and NLB docs list the PQ family: ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09, -TLS13-1-2-PQ-2025-09, -TLS13-1-2-Ext1-PQ-2025-09, -TLS13-1-2-Ext2-PQ-2025-09, -TLS13-1-3-PQ-2025-09, plus FIPS variants such as ELBSecurityPolicy-TLS13-1-2-Res-FIPS-PQ-2025-09. They support X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. The trap: per the same docs, the console default is the Res-PQ policy, but the AWS CLI, CloudFormation and CDK default is still ELBSecurityPolicy-2016-08. If your listeners come from Terraform or CDK without an explicit ssl_policy, check them. The key exchange is in ALB connection logs at field 13.
  • CloudFront. The viewer protocols page lists X25519MLKEM768 and SecP256r1MLKEM768 and notes they are TLS 1.3 only. AWS's September 2025 announcement says it applies across existing policies. Our test of www.amazon.com (served via CloudFront) negotiated X25519MLKEM768.
  • Google Cloud. From the post-quantum TLS doc: enabled by default for global and regional external Application LBs, classic Application LBs, cross-region and regional internal Application LBs, and global and classic proxy Network LBs. An SSL policy with post-quantum-key-exchange set to DEFERRED holds it off until October 2027, after which it's always on. Backend connections aren't covered.
  • Azure. Front Door's TLS key exchange policy went GA on November 5, 2026 (Azure update 577668). Per the Front Door docs, the Standard policy is the default for new and existing profiles and includes X25519MLKEM768 and SecP256r1MLKEM768. Enhanced drops everything X25519-based, and Custom lets you add SecP384r1MLKEM1024. It covers client-to-edge only. App Service's rollout post describes opportunistic X25519MLKEM768 with no setting to toggle.
  • Cloudflare. All TLS 1.3 sites support hybrid key agreement to visitors (Cloudflare PQC docs). For origins, Automatic key exchange scans your origin about every 24 hours and sends the predicted key share; it's on for all zones but only in Full, Full (strict) or Strict SSL modes and TLS 1.3. You can require post-quantum hybrid (pqh) under "Origin connection & post-quantum encryption" in the dashboard. Adoption shows up in the ClientTLSKeyExchangeGroup Logpush field.
  • Fastly. Fastly's April 2025 post says TLS 1.3 customers "automatically benefit" with no action. It doesn't name the group or cover origin connections. Our test of www.fastly.com negotiated X25519MLKEM768.
  • Akamai. Akamai's August 2026 post says client-to-edge is on by default on the Enhanced TLS network, and edge-to-origin is opt-in through the PQC to Origin behavior. That behavior sends an X25519MLKEM768 share; origins without support answer with a HelloRetryRequest, costing a round trip.

Everything in the table is vendor-documented. The only parts we verified ourselves are that the hostnames we tested negotiated X25519MLKEM768 at the edge; we did not test any provider's origin leg.

How to verify X25519MLKEM768 is negotiated

openssl s_client (OpenSSL 3.5+)

Offer only the hybrid group. If the handshake completes, the server supports it. If it doesn't, you get a clean failure instead of a silent fallback.

openssl s_client -connect google.com:443 -servername google.com \
  -groups X25519MLKEM768 -brief </dev/null

Real output, OpenSSL 3.6.1, run 2026-11-18:

Connecting to 2404:6800:4007:838::200e
CONNECTION ESTABLISHED
Protocol version: TLSv1.3
Ciphersuite: TLS_AES_256_GCM_SHA384
Peer certificate: CN=*.google.com
Hash used: SHA256
Signature type: ecdsa_secp256r1_sha256
Verification: OK
Negotiated TLS1.3 group: X25519MLKEM768
DONE

The line you want is Negotiated TLS1.3 group: X25519MLKEM768. Note Signature type: ecdsa_secp256r1_sha256: classical authentication, post-quantum key exchange.

Against a server that doesn't support the group, the same command fails with alert 40 (handshake_failure). Here's github.com:

Connecting to 4.187.247.160
...:error:0A000410:SSL routines:ssl3_read_bytes:ssl/tls alert handshake failure:ssl/record/rec_layer_s3.c:918:SSL alert number 40
...:error:0A000197:SSL routines:SSL_shutdown:shutdown while in init:ssl/ssl_lib.c:2804:

Drop -groups and you see what a normal client gets. OpenSSL falls back, and the output reports the classical key instead:

Protocol version: TLSv1.3
Ciphersuite: TLS_AES_128_GCM_SHA256
Peer certificate: CN=github.com
Signature type: ecdsa_secp256r1_sha256
Verification: OK
Peer Temp Key: X25519, 253 bits

Peer Temp Key: X25519 means classical. That's the fallback working as designed, and why a hybrid rollout doesn't break old clients.

Results for the hosts we tested on 2026-11-18 with -groups X25519MLKEM768:

HostResult
cloudflare.comX25519MLKEM768
google.comX25519MLKEM768
www.apple.comX25519MLKEM768
www.microsoft.comX25519MLKEM768
www.amazon.comX25519MLKEM768
aws.amazon.comX25519MLKEM768
portal.azure.comX25519MLKEM768
www.paypal.comX25519MLKEM768
www.chase.comX25519MLKEM768
www.fastly.comX25519MLKEM768
www.akamai.comX25519MLKEM768
github.com, api.github.comhandshake failure (classical X25519 only)
stripe.comhandshake failure (classical only)

A point-in-time spot check, not a survey. For the bigger picture, see our post-quantum TLS adoption study.

Two more s_client tricks:

  • Add -msg to see message sizes and whether a HelloRetryRequest happened (two ClientHellos in the trace).
  • If your local openssl is older than 3.5, -groups X25519MLKEM768 errors out locally. On macOS, brew install openssl@3 gets you 3.6; on Linux, a current container image is quickest.

curl

curl negotiates whatever its TLS backend supports. With an OpenSSL 3.5+ (or other PQ-capable) backend, force the group and read the verbose connection line (everything curl):

curl -sv -o /dev/null --curves X25519MLKEM768 https://example.com 2>&1 | grep "SSL connection"
# * SSL connection using TLSv1.3 / <cipher> / X25519MLKEM768 / ...

Check curl -V first. If it says LibreSSL or SecureTransport (macOS's /usr/bin/curl does), it's the wrong tool for this test; ours failed to connect to a PQ-only server and printed [blank] / UNDEF for the group even against Cloudflare.

On macOS Tahoe 26, Apple's own tool reports it directly (Apple):

nscurl --tls-diagnostics https://example.com
# look for: Negotiated TLS key exchange group (name): X25519MLKEM768

Chrome DevTools

Open DevTools, go to the Privacy and security panel (called Security in older versions), and click the origin in the left-hand list. The Connection section says the connection "is encrypted and authenticated using" a protocol, a key exchange and a cipher, and there's a separate Key exchange row. You want X25519MLKEM768 there. If it shows X25519, Chrome offered the hybrid and your server (or something in front of it) picked classical. Each origin is listed separately, so check your API and CDN hostnames as well as the page itself.

Wireshark

Capture the handshake and filter on the key share group:

tls.handshake.extensions_key_share_group == 0x11ec

In the ClientHello you'll see two key share entries (the 1,216-byte hybrid one and a 32-byte X25519 one). In the ServerHello there's exactly one; if it's 0x11ec, you're done. Wireshark names the group X25519MLKEM768 from 4.4.7 and in 4.6; older builds show an unknown group 4588, which still answers the question. TLS 1.3 encrypts everything after the ServerHello, but key_share sits in the clear part, so you don't need keys for this.

Testing a client instead of a server

To check whether a client (an SDK, a Java service, a partner's integration) offers the hybrid, run a server that accepts nothing else:

openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes \
  -keyout k.pem -out c.pem -days 2 -subj /CN=localhost
openssl s_server -accept 14433 -cert c.pem -key k.pem -groups X25519MLKEM768 -www

Point the client at https://localhost:14433 with verification off for the test. If it connects, it offered X25519MLKEM768. That's how we got the client results above.

Pitfalls that will bite you

Middleboxes and large ClientHellos

When Chrome 124 turned on the Kyber hybrid in April 2024, some firewalls, TLS inspection appliances and server stacks started dropping connections. The bug was rarely "doesn't know the codepoint". It was code that assumed the ClientHello arrives in one TCP segment or one read() call. At about 1.5 KB, it often doesn't. The site tldr.fail catalogs these. Apple's network preparation note warns that iOS 26 and macOS Tahoe 26 "may fail to connect to some legacy servers" for exactly this reason.

What to check before you blame your config:

  • TLS-inspecting proxies and next-gen firewalls between your users and the internet, and between your load balancer and your origins.
  • Old embedded TLS stacks on appliances (VPN concentrators, WAFs, OT gateways) that sit behind your public hostname.
  • Anything that parses SNI from the first packet to route traffic (L4 load balancers, some service meshes).

A hybrid server never forces anything on a client that doesn't offer it. The breakage is always a client that offers the big ClientHello hitting a broken box in the middle.

HelloRetryRequest cost

If the server's preferred group isn't among the client's key shares, TLS 1.3 adds a full round trip. We saw this live: offering only an X25519 share to cloudflare.com with the hybrid in supported_groups (-groups "*X25519:X25519MLKEM768") produced a 308-byte ClientHello, an 88-byte HelloRetryRequest, a second 1,492-byte ClientHello, then X25519MLKEM768. That's Cloudflare choosing post-quantum over latency.

Mainstream clients send the hybrid share up front, so in practice HRR hits clients that list the hybrid but predict a classical share, and edge-to-origin connections where the edge guesses wrong (both Cloudflare and Akamai document this). Your choice in nginx and Apache is the tuple syntax from earlier: X25519MLKEM768/X25519:... buys PQ at the cost of a possible HRR, while a flat list avoids the HRR and quietly accepts classical.

The load balancer in front of your nice nginx config

The most common "we enabled it but scanners say no" story: nginx is perfect, and an ALB, an ingress controller, or a CDN terminates TLS in front of it with its own policy. openssl s_client against the public hostname tells you what the first terminator does. Test each hop separately: the public name, the load balancer's own DNS name, and the origin from inside the VPC. Also remember that the GCP, Azure Front Door and App Service rollouts are frontend-only, so the hop to your backend is classical unless you terminate TLS there with a PQ-capable stack yourself.

FIPS mode

FIPS changes which groups exist. ML-KEM is FIPS 203 and X25519 isn't a FIPS-approved curve, which is why RFC 10024 puts the ML-KEM secret first and why SecP256r1MLKEM768 exists. What actually happens depends on your validated module:

  • Go 1.27 in FIPS 140-3 mode allows X25519MLKEM768 and the SecP hybrids but drops plain X25519 (per the Go source).
  • AWS publishes separate -FIPS-PQ- ELB policies. Cloudflare lets you combine pqh and fips for origin connections. Envoy 1.40 includes the hybrid in FIPS builds' defaults.
  • A FIPS module validated before ML-KEM support won't offer it at all. Groups outside the module are silently ignored, so FIPS mode can look like a successful config while negotiating classical. Verify with s_client.

HTTP/3 and QUIC

QUIC carries the same TLS 1.3 ClientHello inside its Initial packets, so the same 1.2 KB growth applies. A 1.5 KB ClientHello doesn't fit in one QUIC Initial packet on a typical path, so it spans two. QUIC servers and load balancers that expect the whole ClientHello (or the SNI) in the first Initial packet can fail here. Firefox only enabled the hybrid for HTTP/3 in version 135, a few releases after TCP. If you run your own QUIC termination, check its version's PQ support separately from your TCP listener, and test with an HTTP/3 client as well as s_client.

Overrides you forgot about

Grep for these after every upgrade. Each one silently disables the new default:

grep -rnE "ssl_ecdh_curve|SSLOpenSSLConfCmd +(Groups|Curves)|ssl-default-(bind|server)-curves|ecdh_curves|jdk\.tls\.namedGroups|CurvePreferences|ecdhCurve|tlsmlkem=0" .

Also check openssl.cnf for a Groups line under system_default. Some distributions and hardening baselines set one, and it applies to every OpenSSL application on the host.

A rollout plan that fits in a week

  1. Day 1. Run openssl s_client -groups X25519MLKEM768 against every public hostname (or use Qunoq's free scan, which checks a domain and its Certificate Transparency subdomains for X25519MLKEM768 in about 20 seconds). Note which ones fail and who terminates TLS for each.
  2. Day 2. Upgrade the TLS library on the terminators you own; grep for overrides. Set AWS listener policies explicitly to a -PQ- policy in IaC.
  3. Day 3. Ship to a canary. Watch handshake failure rates and p95 TLS handshake time. Log the group ($ssl_curve, %DOWNSTREAM_TLS_GROUP%, ALB field 13).
  4. Days 4 and 5. Roll out; turn on origin PQ in your CDN; test internal hops. Record what's covered for the next customer questionnaire, along with the deadlines that are driving it.

Questions or war stories from your own rollout are welcome in the Qunoq Slack community.

FAQ

Is X25519MLKEM768 a standard now?

Yes. It's defined in RFC 10024, a Proposed Standard published in August 2026, with codepoint 4588 (0x11EC) in the IANA TLS Supported Groups registry. Before that it lived in draft-ietf-tls-ecdhe-mlkem, but browsers and major libraries have used the same codepoint since late 2024, so nothing on the wire changed at publication.

Does enabling X25519MLKEM768 break older clients?

No, not if you keep classical groups in your list. Clients that don't offer the hybrid just negotiate X25519 or P-256 as before. Failures come from clients that do offer it and hit a middlebox or legacy server that can't handle the larger ClientHello.

Do I need new certificates for post-quantum TLS?

No. X25519MLKEM768 only changes key exchange, and it works with your existing RSA or ECDSA certificate. Post-quantum certificates (ML-DSA or Merkle Tree Certificates) are a separate migration that browsers don't support for the public web yet.

Does post-quantum TLS work with TLS 1.2?

No. Hybrid ML-KEM groups are defined only for TLS 1.3. Every provider in this article, including AWS, Cloudflare, CloudFront and Azure, documents it as TLS 1.3 only, so a TLS 1.2 connection always uses classical ECDHE.

How much slower is the handshake?

Usually not noticeably. ML-KEM is fast to compute. The real costs are about 1.2 KB extra in each direction and, in some setups, an extra round trip from a HelloRetryRequest. Connection reuse means this is paid per connection, not per request. Measure your own p95 handshake time on a canary before and after.

Which should I use: X25519MLKEM768 or SecP256r1MLKEM768?

Use X25519MLKEM768 for internet-facing services, because it's what every browser and default library sends. Add SecP256r1MLKEM768 (or SecP384r1MLKEM1024) when a FIPS or CNSA 2.0 requirement asks for NIST curves, and keep X25519MLKEM768 in the list alongside it.

See where your code and website stand.

Paste a public repo or a domain. Free, no sign-up.

Try:

Public GitHub or GitLab. Read-only snapshot, deleted after the scan.

Questions about your migration? Join the Qunoq Slack community

Keep reading

X25519MLKEM768: How to Enable and Test Post-Quantum TLS | Qunoq