PostQConsulting

PostQ Insights

Why Hybrid TLS Tests Can Fail Even When HTTPS Works

By PostQ Consulting · Published December 5, 2026

A working HTTPS page does not prove that a post-quantum upgrade worked. In an isolated lab, static pages loaded and certificate checks passed while the connections intended to use hybrid key exchange still negotiated classical X25519. The test exposed a gap between the proposed configuration and the behavior of the running server.

What the business needed to establish

Consider a customer portal and a second application hosted by the same web server. The proposed policy was to prefer hybrid key exchange for the portal while keeping the second application classical-only. Both applications also needed to retain their agreed compatibility with older clients. The acceptance question was whether each application followed its own policy, not simply whether both homepages opened.

The December 3, 2026 experiment used Apache 2.4.66 and OpenSSL 3.5.5 in a disposable, isolated container with temporary certificates and static pages. No production application, customer records, or production keys were involved. The labels below replace the test hostnames.

Read the results against the intended policy

Test conditionPolicy resultObserved behavior
Target portal: hybrid-first offerFAILX25519
Target portal: classical-first offerFAILX25519
Target portal: hybrid-only offerFAILHandshake failure, alert 40
Target portal: classical-only offerPASSX25519
Target portal: hybrid advertised, initial X25519 share onlyFAILX25519
Classical control site: mixed offerPASSX25519
Classical control site: hybrid-only offerPASSRejected, alert 40
TLS 1.2, both sitesPASSX25519
Static pages, both sitesPASSHTTP 200; certificate checks passed
Results from the original isolated configuration. Some rows group checks on both sites. PASS and FAIL describe the intended test policy, not a universal security rating.

A classical-first offer is not automatically an error in TLS. It was marked FAIL here because the intended portal policy preferred hybrid exchange even in that test. Conversely, rejecting a hybrid-only client was a PASS for the deliberately classical-only control site. The expected behavior must be written down before interpreting the result.

Three checks that answer different questions

  • Availability: did the server return the expected page or API result?
  • Authentication: did the certificate and hostname checks pass against the intended trust configuration?
  • Key establishment: which group did this particular connection actually negotiate?

X25519 is classical key agreement. X25519MLKEM768 combines X25519 with ML-KEM-768 for a hybrid TLS 1.3 exchange. A conventional certificate can authenticate a connection that uses hybrid key agreement; the certificate signature is a separate mechanism. Neither a padlock nor the name of an AES cipher suite establishes which key-agreement group was selected.

IETF RFC 10024: hybrid key agreement for TLS 1.3

Alert 40 means handshake_failure. It is not a diagnosis of one particular configuration problem. The rejection in this matrix is useful evidence when combined with the offered groups, server configuration, and control tests. On its own, the alert does not prove that a product lacks post-quantum support.

IETF RFC 9846: TLS 1.3 alerts and negotiation

The control tests changed the diagnosis

In the original layout, the classical-only virtual host was first on a shared listener. Reversing the two virtual-host blocks made hybrid offers succeed for the target portal. However, the control site then also negotiated hybrid exchange, contrary to its intended classical-only policy. Making the target site the default was therefore not an acceptable fix for this design.

A second control placed the two policies on separate listeners inside the same isolated lab. All nine TLS cases in that control passed: the target accepted hybrid offers, classical clients remained compatible, and the classical-only site continued rejecting hybrid-only offers. This demonstrated that the tested software stack could perform the exchange. It narrowed the problem to how the policies behaved in the original shared-listener arrangement.

That is a result for this build and configuration. It does not establish a source-level Apache defect or show that every Apache version behaves the same way. A later experiment used a shared hybrid-preferred policy for both named sites and passed its own checks. That was a different policy objective; it did not prove that the original per-site isolation requirement worked.

Read the separate shared-policy lab analysis →

Why the initial key share belongs in the test matrix

A client can advertise support for a hybrid group while initially sending only a classical key share. TLS provides HelloRetryRequest so a server can request an appropriate share when negotiation requires it. Group support, the initial share, and the server’s selection policy are separate facts. In the separate-listener control, a second ClientHello was observed and the connection completed with X25519MLKEM768.

OpenSSL 3.5 documents group-preference tuples and selection behavior, including the interaction with supplied shares. That is why a client test labeled “hybrid supported” is too vague: record what the client advertised, which shares it sent, whether a retry occurred, and what was ultimately negotiated.

OpenSSL 3.5: group lists, preferences, and key shares

What to require before a production rollout

  • Define the boundary: identify the TLS termination point and every application sharing it. Include a separate edge-to-origin connection when relevant.
  • Agree on success: name the expected group for each representative client and the allowed behavior when hybrid support is absent.
  • Keep control cases: verify neighboring sites retain their intended behavior after a configuration or ordering change.
  • Join the evidence: on a fresh connection, record the protocol, negotiated group, certificate/hostname validation, and expected application response. Do not infer one from a separate successful test.
  • Validate the architecture: a successful private listener test does not establish that real customers will reach it. Verify routing, certificate management, monitoring, and access controls before rollout.
  • Set rollback triggers: unexpected classical selection where hybrid is required, broken clients, changes to a neighboring site, or unacceptable application behavior should stop the pilot.

The original static-page checks were reported separately from the handshake matrix. They show availability and certificate verification for those page requests; they should not be presented as proof that every handshake case delivered an application response on the same connection. The lab also did not test production application transactions, load, inspection devices, or all client versions.

What PostQ would deliver

For a customer application or partner API, we agree on the connection paths and policies first. The implementation evidence then records the tested versions, client matrix, observed groups, control-site behavior, remaining exceptions, and rollback procedure. A classical connection that meets an agreed compatibility exception is recorded as such; it is not counted as a verified hybrid connection.

This result supports a careful implementation decision, not a claim that an entire application or organization is post-quantum protected. If the system boundaries are not yet clear, begin with an assessment. If you already have a roadmap, we can review it and scope a verification pilot.

Plan a pilot → · Post-Quantum Implementation and Testing →

Evidence note: This article summarizes an isolated December 3, 2026 lab report and its documented control tests. It does not describe a client deployment. Infrastructure identifiers and private configuration are omitted.