OpenSSL with post-quantum defaults: what to test before and after the upgrade

From 3.5 on, OpenSSL sends a hybrid ML-KEM key share with no change to your config. A test plan, with the two checks December 2026 added: P-384 behind the hybrid, no P-256 CA key in the chain.

Command output: OpenSSL 3.0.13 negotiates X25519, OpenSSL 3.5.10 negotiates the hybrid X25519MLKEM768 group

In short

  • OpenSSL 3.5 and later send two key shares, X25519MLKEM768 and X25519, and put ML-DSA first in the signature algorithm list, without any configuration change.
  • Most failures come from around the library: a pinned group list, a second bundled copy, or a firewall that cannot read a ClientHello split across two packets.
  • A flat group list does not make a server prefer P-384 over X25519 for classical clients. In our test on OpenSSL 3.5.9 only the tiered form, X25519MLKEM768/secp384r1/X25519:prime256v1, did.
  • Roll back with a one-line group setting on the affected client, never by returning to OpenSSL 3.0, which reached end of life on September 7, 2026.

Upgrading to OpenSSL 3.5 or later changes what your servers and clients put on the wire even if nobody touches a configuration file. A client now sends two key shares, X25519MLKEM768 and X25519. The ClientHello grows past one TCP segment. Three ML-DSA variants lead the list of signature algorithms. The library side of this has been in production since April 2025; the failures come from what sits around it, and the platform team can test for each of them before and after the package lands. If something breaks, the rollback is a one-line group setting on the affected client. It is never a return to 3.0.

December 2026 gave this upgrade a deadline it did not have. NSA's advisory of December 2 tells system owners to update and then not to leave classical defaults in place. NIST promised a faster deprecation schedule for RSA and elliptic curves the next day, and Chrome and Edge set March 15, 2027 as the end of certificate chains with a P-256 CA key. The calendar and the order of work across every system are in our 2027 migration guide. For the OpenSSL upgrade itself, that week added two checks to the plan: the order of the classical curves behind the hybrid, and the keys in the certificate chain the server sends.

What changes on the wire when the package updates

The release notes for OpenSSL 3.5.0, published April 8, 2025, say it in two lines: "The default TLS supported groups list has been changed to include and prefer hybrid PQC KEM groups" and "The default TLS keyshares have been changed to offer X25519MLKEM768 and X25519." Every release since has kept that default.

The built-in group list is now ?*X25519MLKEM768 / ?*X25519:?secp256r1 / ?X448:?secp384r1:?secp521r1 / ?ffdhe2048:?ffdhe3072. A * marks a group the client sends a key share for, and / separates tiers of preference. Three things follow.

A client sends both a hybrid and a classical key share in its first message. The hybrid share is 1,216 bytes against 32 for X25519, so the ClientHello no longer fits in one TCP segment.

A server picks from the first tier that both sides support. If the client listed X25519MLKEM768 but sent no key share for it, the server answers with a HelloRetryRequest and the handshake takes one more round trip to land on the hybrid.

The signature algorithm defaults "now include all three ML-DSA variants as first algorithms," the changelog says. Your certificates do not change, but the ClientHello does, and anything that fingerprints it sees a new client.

Release line

Status on December 5, 2026

What it means for post-quantum

3.0

End of life since September 7, 2026

No ML-KEM. Still the system library on Ubuntu 22.04 and 24.04

3.5 (LTS)

Supported until April 8, 2030; latest is 3.5.10 of December 1, 2026

Hybrid on by default; the validated FIPS provider is 3.5.9

3.4 and 3.6

End of life since October 22 and November 1, 2026

Move to 3.5 or 4.1

4.0

Released April 14, 2026; supported until May 14, 2027

Engines removed; deprecated elliptic curves off in TLS by default

4.1

Released October 23, 2026; supported until November 23, 2027

Optimized ML-DSA code on x86_64, ML-KEM and ML-DSA on ppc64le

4.2 (LTS)

Due April 2027

The next long-term line; 5.0 follows in October 2027

The dates for 4.2 and 5.0 come from the project's release plan of May 7, 2026.

Find the OpenSSL each service really loads

openssl version describes the command-line tool and nothing else. Each process that terminates TLS loads its own copy, and a host can carry four or five. Before the upgrade, the service owner records the library behind every listener and every outbound client:

  • For a dynamically linked server, ldd "$(command -v nginx)" | grep -E 'libssl|libcrypto' shows the file it loads. No output means the library is compiled in, and the host package will not change it. nginx -V prints the version it was built with and, if different, the one it runs with.
  • Language runtimes often bring their own. python3 -c "import ssl; print(ssl.OPENSSL_VERSION)" and node -p process.versions.openssl answer for Python and Node. Node 24 bundles OpenSSL 3.5.
  • Go and Java do not use OpenSSL for TLS. Go's own stack has offered the same hybrid since 1.24 and the JDK since 27, so an OpenSSL upgrade changes nothing for those services in either direction.
  • Container images carry the library of their base image. A host on Debian 13 with OpenSSL 3.5.10 can run fifty containers built on Ubuntu 24.04 with 3.0.13.
  • Vendor agents and appliances are usually statically linked. Ask the vendor which library version the product embeds.

Read distribution version strings with care. Ubuntu 26.04 ships 3.5.5 with Ubuntu's own security patches on top, so compare against the distribution's security tracker, not against the upstream version number.

The test sequence

The sequence has three stages: a baseline taken a week before, tests on one canary host on the day, and a log review a week after. All of the commands need an OpenSSL 3.5 or later client on the testing machine.

A week before: baseline

  1. The service owner adds the negotiated group to access logs: $ssl_curve in nginx's log_format, the ssl_fc_curve sample in HAProxy. A week of logs gives the share of clients on each group before anything changes.
  2. The platform engineer searches configuration for pinned group lists: ssl_ecdh_curve in nginx, curves and ssl-default-bind-curves in HAProxy, SSLOpenSSLConfCmd Groups or Curves in Apache, and Groups or Curves in any openssl.cnf. Each hit gets removed or gets a ticket, because a pinned list silently cancels the new default.
  3. The service owner lists the third-party endpoints the service calls: payment, identity, SaaS APIs, partner hosts. This list drives the outbound check on the canary.
  4. The network engineer lists what sits in the path in both directions: CDN, WAF, load balancer, egress proxy, firewall with TLS inspection or SNI filtering.

On the canary: eight checks

  1. The server negotiates the hybrid. Run openssl s_client -connect host:443 -groups X25519MLKEM768 -brief </dev/null. It passes when the output contains Negotiated TLS1.3 group: X25519MLKEM768.
  2. Classical clients still connect. The same command with -groups X25519, and with -tls1_2 if you still serve TLS 1.2, must complete a handshake.
  3. A client that defers the hybrid gets upgraded. Run it with -groups X25519:X25519MLKEM768, which lists the hybrid but sends a key share only for X25519. A correct server answers with a HelloRetryRequest and the output shows the hybrid group. A server older than 3.5.6 with DEFAULT in its group list stays on X25519; that is CVE-2026-2673, fixed on April 7, 2026.
  4. The path does not strip it. Repeat the first check from outside, through the CDN, the WAF and the public load balancer, and from a network your customers use. On macOS 26, nscurl --tls-diagnostics https://host reports the negotiated group, as Apple's note on quantum-secure TLS describes.
  5. Outbound calls survive your own egress. From the canary, through the production egress path, connect to every third-party endpoint on the baseline list. A timeout or a reset right after the ClientHello marks a device that cannot handle the larger message.
  6. Handshake cost is where you expect it. Compare full-handshake latency and CPU against the baseline. Cloudflare's 2025 report on the post-quantum internet cites Chrome's measurement of about a 4% slowdown in handshake time for the extra kilobyte in each direction; resumed sessions do not pay it.
  7. Classical clients land on P-384. Run openssl s_client -connect host:443 -groups X25519:secp256r1:secp384r1 -brief </dev/null. With the tiered group list from the next section, the temp key line of the output names secp384r1. With the default list or a flat one it names X25519. This check runs from any OpenSSL 3.x client.
  8. No CA certificate in the chain is on P-256. openssl s_client -connect host:443 -showcerts </dev/null prints every certificate the server sends; decode each with openssl x509 -noout -text and look at the ones after the first. ASN1 OID: prime256v1 on a CA certificate means Chrome and Edge will reject the chain from March 15, 2027. The same line on your own certificate is not blocked yet, but both browsers ask you to move that key to P-384 or RSA-3072: generate the next one with openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-384.

A week after: evidence

  1. The service owner reads the logs. The share of connections on X25519MLKEM768 should match the share of clients that offer it: most browsers, few scripts. Any client population that stayed classical gets a name.
  2. The security engineer reviews rules keyed to ClientHello fingerprints. JA3 and JA4 allowlists, bot rules and anomaly baselines all see upgraded clients as new ones.
  3. For FIPS deployments, openssl list -providers must show the FIPS provider at the validated version. The module that received FIPS 140-3 certificate #5586 on November 13, 2026 is provider version 3.5.9, and it keeps that version while the rest of the library moves with each 3.5 patch release.

Put P-384 behind the hybrid

Clients that cannot do the hybrid will keep arriving for years: old runtimes, appliances, anything limited to TLS 1.2. Until December their classical handshake landed on X25519 and nobody minded. Mozilla's post-quantum notice of December 3 recommends P-384 for key exchange wherever the hybrid cannot be used, and Firefox is being changed to prefer it over X25519 and P-256.

Adding secp384r1 to the server's list does not do it. We ran a server on OpenSSL 3.5.9 with the flat list X25519MLKEM768:secp384r1:X25519:prime256v1 and connected with a client that offered X25519, P-256 and P-384 and sent a key share for X25519, which is what most classical TLS 1.3 clients do. The server chose X25519. Inside one tier OpenSSL takes a group the client has already sent a share for, because asking for another costs a round trip.

The group list syntax that came with 3.5 has tiers, separated by a slash. With

ssl_ecdh_curve X25519MLKEM768/secp384r1/X25519:prime256v1;

in nginx, which hands the string to OpenSSL unchanged, the same client got a HelloRetryRequest and finished on P-384. Apache takes the same string through SSLOpenSSLConfCmd Groups. A client offering the hybrid still got the hybrid. A client with only X25519 or only P-256 still connected, from the last tier. A TLS 1.2 client got P-384.

Client offers

Flat list

Tiered list

X25519MLKEM768 with a key share

X25519MLKEM768

X25519MLKEM768

X25519, P-256, P-384; key share for X25519

X25519

P-384, after one extra round trip

X25519 and P-256 only

X25519

X25519

P-256 only

P-256

P-256

TLS 1.2 with all three curves

P-384

P-384

The cost is that extra round trip for classical TLS 1.3 clients, on full handshakes only. The tier syntax does not exist before 3.5, so a configuration file shared with hosts still on 3.0 will fail to load there: roll it out with the package, not ahead of it. On Windows the same choice lives in the ECC Curve Order policy, where NistP384 has to be moved above curve25519 and NistP256.

Reading a failed handshake

Almost every failure after this upgrade falls into one of seven patterns, and the symptom usually identifies the cause before anyone opens a packet capture.

Symptom

Likely cause

Fix

Timeout or reset right after the ClientHello, on one network path only

A firewall, load balancer or old server reads the first TCP segment and treats the rest of the ClientHello as garbage

Vendor patch. Until then, the client-side setting in the next section

Handshake succeeds, group is X25519

Pinned group list; peer has no ML-KEM; TLS 1.2; the process loads another copy of the library

The pinned-list search, the first canary check, then the library inventory

Hybrid group only after an extra round trip

The client lists the hybrid without a key share, and the server asks for it

Expected. If the server never asks, patch to 3.5.6 or later

WAF or bot rule starts blocking an internal client

Its ClientHello fingerprint changed with the new groups and signature algorithms

Update the allowlist from the canary's fingerprint

Service will not start after a move to 4.0 or later

Engines were removed in 4.0; an HSM or PKCS #11 integration still loads one

Move the integration to a provider before leaving 3.5

Classical TLS 1.3 clients land on X25519 although P-384 is in the list

The list is flat; OpenSSL prefers a group the client already sent a key share for

Use the tiered list from the section above

Packet capture shows group "unknown (0x11ec)"

The capture tool predates the X25519MLKEM768 code point

Update the tool; the handshake itself is fine

The first row is the one that reaches production. The reference page for this bug, tldr.fail, describes it: a server calls read() once, gets part of the ClientHello and fails the connection. Apple's note warns that its devices "may fail to connect to some legacy servers" for the same reason. OpenSSL's manual page for group lists says the larger message "may no longer fit in a single TCP segment and firewall software may erroneously disrupt the TLS handshake."

Roll back the setting and keep the package

When one path breaks, change the group list for the client that crosses it. The OpenSSL manual gives the string: prepend ?X25519MLKEM768: to DEFAULT. The client then lists the hybrid without sending a key share for it, the ClientHello fits in one segment again, and a server that prefers the hybrid can still ask for it with a HelloRetryRequest.

For one application, set it wherever the application takes a group list. For every OpenSSL client on a host, set it in openssl.cnf:

[system_default_sect]
Groups = ?X25519MLKEM768:DEFAULT

Apply it in this order: the single client, then the service, then the host. Every such setting gets a ticket with the name of the device that caused it and an expiry date, because a workaround with no owner is how a fleet ends up classical two years later without anyone having decided it. On the server side there is rarely a reason to roll anything back: a server that offers the hybrid loses no classical client.

Downgrading the package is not an option. The 3.0 line gets no more public security fixes, and the 3.5 patch releases of 2026 fixed real flaws in the new handshake code.

What to read in every later release

Post-quantum behavior in OpenSSL is still moving, so each new release gets a ten-minute read by the service owner before it enters the image pipeline. Four things are worth looking for.

The words "default", "group", "keyshare" and "sigalg" in CHANGES.md. A change to any default list is a change on the wire.

Fixes in handshake code. The December 1, 2026 releases (3.5.10, 4.0.4 and 4.1.1) are an example: 4.1.1 fixed an out-of-bounds read in TLS 1.3 key-share processing, CVE-2026-35190. Key-share code is new, and it is where bugs are being found.

Removals when crossing a major version. Moving from 3.5 to 4.x drops engines and SSLv3 and turns off deprecated elliptic curves in TLS.

Support dates. A team on 3.5 can stay until April 2030. A team on 4.1 has to move to 4.2 by November 2027. For most fleets, 3.5 now and 4.2 after its first few patch releases is the calm path.

Where this upgrade sits among SSH, VPN tunnels and certificates is in our post-quantum migration order. The record below holds the evidence for one service or one fleet.

Test record builder

Your OpenSSL post-quantum upgrade record

Five parts for one service or one fleet. Empty lines stay blank in the document, so an untested item is visible.

Saved only in this browser. Nothing is sent to us.

One record per service or fleet image. Name the versions exactly as the package manager shows them.

0 of 8 filled
Not saved: this browser blocks storage ·

More in Guides

All in this topic