Skip to content
Quantum Aether/Test X25519MLKEM768 with OpenSSL 3.5 · Quantum Aether
Live platformالعربية

Test X25519MLKEM768 with OpenSSL 3.5

Updated:

Short answer

Use OpenSSL 3.5 or newer and look for Negotiated TLS1.3 group: X25519MLKEM768. Do not trust Peer Temp Key: X25519 alone. An OpenSSL 3.0–3.4 client cannot test this group. Or skip the flags and use the post-quantum TLS checker.

Scan your site now, free

Domain or HTTP(S) URL. HTTPS port 443 is checked; paths and pasted URL ports are not scanned.

This is the cookbook for testing X25519MLKEM768 yourself with OpenSSL 3.5 s_client. It covers the flags, how to read the output, and the failures that look like “the server is broken” when the client is simply too old. If you want a one-click confirmation instead, use the post-quantum TLS checker (a port-443 handshake only).

1. Confirm you are on OpenSSL 3.5 or newer

openssl version

You need 3.5.0 or newer. Debian 13, Ubuntu 25.10/26.04, Homebrew openssl@3 (once it has 3.5) and container images such as alpine:3.22+ typically ship it. An openssl version of 3.0.x through 3.4.x cannot test this group: the name is unknown, and the output tells you nothing about ML-KEM.

Check the binary you will actually run, not a different one earlier in $PATH:

which openssl
openssl version -a | head

2. Default offer versus forcing the hybrid group

Two different commands answer two different questions.

Browser-like offer (hybrid first, classical allowed). On OpenSSL 3.5 the default already includes X25519MLKEM768. You can also list the groups yourself:

openssl s_client -connect example.com:443 -servername example.com -tls1_3 \
  -groups X25519MLKEM768:X25519:prime256v1 </dev/null 2>/dev/null \
  | grep -iE "Protocol|Cipher|Peer Temp Key|Server Temp Key|Negotiated TLS1.3 group"

This handshake will usually succeed even if the server is classical: it just negotiates X25519. Success is not evidence of post-quantum support. Read the negotiated group (next section).

Hybrid only. The client offers just X25519MLKEM768, so a classical-only server fails instead of falling back silently:

openssl s_client -connect example.com:443 -servername example.com -tls1_3 \
  -groups X25519MLKEM768 </dev/null 2>/dev/null \
  | grep -iE "Protocol|Cipher|Peer Temp Key|Server Temp Key|Negotiated TLS1.3 group|alert|error"

Always pass -servername (SNI). Without it you may test the default certificate/vhost, not the hostname you care about. The scan is on port 443.

3. How to read the output

The line that matters is:

Negotiated TLS1.3 group: X25519MLKEM768

That is a post-quantum hybrid key exchange. Other acceptable post-quantum lines include SecP256r1MLKEM768, SecP384r1MLKEM1024, ML-KEM-768 or ML-KEM-1024, depending on the server.

Do not stop at Peer Temp Key: X25519 or Server Temp Key: X25519. OpenSSL may still print the classical X25519 half of a hybrid handshake on that line. A result that only shows X25519 in the temp-key field, without reading Negotiated TLS1.3 group, can be a false classical reading of a successful hybrid exchange — or genuinely classical. The negotiated-group line is the one to trust. If that line says X25519 or secp256r1, the server did not select a post-quantum group.

4. Handshake failure and alert 40

When you force -groups X25519MLKEM768 and the server does not accept it, s_client typically fails with a TLS alert 40 (handshake_failure), “no suitable key share”, or a generic certificate/handshake error. That usually means:

  • the server (or the CDN edge you reached) does not offer X25519MLKEM768; or
  • a middlebox stalled a large ClientHello (the hybrid key share is 1,216 bytes and often spans two TCP segments). See the handshake size and latency guide.

Retry without forcing a single group, and compare with the online checker, which uses a current client and records the selected group.

5. Why an OpenSSL 3.0 or 3.4 client proves nothing

OpenSSL 3.0–3.4 does not implement ML-KEM or the IANA name X25519MLKEM768. Typical symptoms:

  • SSL_CTX_set1_groups_list / unknown group if you pass -groups X25519MLKEM768;
  • a handshake that quietly uses X25519 if you do not pass the group, with no ML-KEM information in the output.

Neither result says whether the server is post-quantum ready. Upgrade the client, run the command inside a newer container (debian:trixie or alpine:3.22), or skip the local flags and use the checker or the text API:

curl -s "https://ather-quantum.com/api/v1/scan?domain=example.com&format=text"

A shorter CLI listing, including curl, is in Test X25519MLKEM768 with OpenSSL 3.5 and curl.

6. If the server is not ready

Enable the hybrid group on the stack that terminates public TLS:

7. Keep the result from drifting

A one-off s_client run is a snapshot. Load-balancer and CDN changes can silently drop the hybrid group. Continuous monitoring re-checks public endpoints daily: 29 € / 99 € per month (Starter 10 domains, Business 100), with a 14-day trial. For a dated evidence pack across an organisation's public hostnames, the PQC Audit is 490 €. DACH operators mapping this to BSI's guideline should also read BSI TR-02102-2: Post-Quantum TLS and the PQ-TLS Index.

Frequently asked questions

Which OpenSSL version do I need to test X25519MLKEM768?

OpenSSL 3.5.0 or newer. Versions 3.0 to 3.4 do not recognise the group name and cannot prove whether the server supports it.

What line in the s_client output should I trust?

Negotiated TLS1.3 group: X25519MLKEM768 (or another hybrid / ML-KEM group). Peer Temp Key: X25519 can appear even during a successful hybrid handshake because it may show only the X25519 half.

What does TLS alert 40 mean in this test?

Alert 40 is handshake_failure. With -groups X25519MLKEM768 it usually means the server did not accept that group, or a middlebox stalled the large ClientHello.

Why does a test from OpenSSL 3.0 or 3.4 prove nothing?

Those releases have no ML-KEM implementation. They either reject the group name or silently finish with classical X25519, regardless of what the server can do.

How can I test without upgrading OpenSSL on my machine?

Use the online checker, curl https://ather-quantum.com/api/v1/scan?domain=example.com&format=text, or run OpenSSL 3.5 inside a newer container image.

Scan your site now, free

Domain or HTTP(S) URL. HTTPS port 443 is checked; paths and pasted URL ports are not scanned.