Post-Quantum Verified

Migration guide

Check which TLS key-exchange group your own endpoint negotiates

Use OpenSSL 3.5 or later to see which key-exchange group a TLS server of yours negotiates, and whether it is the hybrid post-quantum group X25519MLKEM768 or only a classical group.

Lab validated Last reviewed 2026-12-04

How this guide was validated. Run on 2026-12-04, loopback only (127.0.0.1). Servers: Node.js v24.13.1 (OpenSSL 3.5.5) with ecdhCurve set to X25519MLKEM768:X25519 (hybrid) and to X25519 (classical only), and an https server with ecdhCurve X25519MLKEM768:X25519:prime256v1. Clients: /opt/homebrew/opt/openssl@3/bin/openssl (OpenSSL 3.6.2) and /opt/homebrew/bin/openssl (OpenSSL 4.1.0). The output lines in this guide are copied from those runs. Not run: OpenSSL 3.5.x as the client, any external host, and the browser devtools route (not verified in official docs, so left out). The macOS /usr/bin/openssl is LibreSSL and was not used.

Applies to

  • OpenSSL 3.5 or later as the s_client (lab-run on 3.6.2 and 4.1.0)
  • Any TLS 1.3 server you control or can ask about

Before you start

  • OpenSSL 3.5 or later on the machine you test from. Check with openssl version. Older OpenSSL and LibreSSL cannot offer ML-KEM groups, so they cannot tell you whether a server supports the hybrid group.
  • Permission to connect to the endpoint. Only test hosts you own or are authorised to test.
  • The hostname and port, for example example.com and 443.

Steps

  1. Check your OpenSSL version
    The client must be OpenSSL 3.5 or later. OpenSSL 3.5 added ML-KEM and the hybrid groups, and offers X25519MLKEM768 by default.
    openssl version

    Expect: A line such as: OpenSSL 3.6.2 7 Apr 2026. If it says LibreSSL or a version below 3.5, install or find a newer OpenSSL before going on.

  2. Connect with default settings and read the negotiated group
    Use -servername so the server picks the right certificate. </dev/null closes the connection after the handshake. The grep keeps only the lines that name the key-exchange group.
    openssl s_client -connect example.com:443 -servername example.com </dev/null 2>&1 | grep -E "Negotiated TLS1.3 group|Peer Temp Key|Protocol"

    Expect: Hybrid server: "Negotiated TLS1.3 group: X25519MLKEM768" and "Protocol: TLSv1.3". Classical-only server: "Peer Temp Key: X25519, 253 bits" and "Protocol: TLSv1.3" (no "Negotiated TLS1.3 group" line in that case on 3.6.2 and 4.1.0). Both outputs were seen in the lab.

  3. Optional: force the hybrid group to confirm the server accepts it
    This offers only X25519MLKEM768. If the server does not support it, the handshake fails. That failure tells you the server (or something in front of it) does not accept the hybrid group.
    openssl s_client -connect example.com:443 -servername example.com -groups X25519MLKEM768 </dev/null 2>&1 | grep -E "Negotiated|alert|error"

    Expect: Hybrid server: "Negotiated TLS1.3 group: X25519MLKEM768". Classical-only server: an error such as "SSL alert number 40" (handshake failure), and the group line shows NULL or NID 0 depending on the OpenSSL version.

  4. Optional: confirm which TLS version and certificate you reached
    The -brief output is short and includes the group on one line.
    openssl s_client -connect example.com:443 -servername example.com -brief </dev/null

    Expect: Lines including "Protocol version: TLSv1.3" and, for a hybrid server, "Negotiated TLS1.3 group: X25519MLKEM768".

Verify

  1. Interpret the result
    X25519MLKEM768 means this client and this server agreed a hybrid post-quantum key exchange for this connection. X25519 (or another classical group) means they did not. Run the check from a second OpenSSL version if you can, because a result depends on what the client offers. If the connection fails entirely, see the limits below before changing anything.

Roll back

  1. Nothing to roll back
    This guide only reads. It changes no configuration. If you ran it against a staging copy, no cleanup is needed.

What this guide does not cover

  • The result describes one connection, from your client to whatever answered. If a CDN, load balancer or managed platform answers, it describes that front door, not your origin server. See the guide cdn-edge-and-origin.
  • A key-exchange result says nothing about authentication: the certificate and its signature are a separate question, and certificate signatures are not made post-quantum by this change.
  • A classical result does not mean the server cannot do hybrid. A server may prefer a classical group when the client does not offer the hybrid group first, or an intermediary may change what is offered. Use the forced -groups test to separate these cases.
  • A hybrid result covers this handshake only. Other ports, other hostnames, other protocols (SSH, mail, VPN) and internal services need their own checks.
  • Tested here only with OpenSSL 3.6.2 and 4.1.0 as the client. Output wording on 3.5.x was not run here. The cited manual does not describe the output lines.
  • Browser developer tools were not included: no official documentation for the exact UI path was verified.

Sources

Only change systems you own or are authorized to change. Have a person approve each change and keep a rollback.