Legacy TLS Clients in a PQC Rollout: Find, Fence, Retire

How do you roll out post-quantum TLS when some clients cannot be upgraded? First, log what every client offers in its handshake, so you know who they are. Then keep a classical fallback on the main endpoint and give the clients that need weaker TLS their own server block, reachable only from their source IPs. Last, accept the limit of that trick: a fence decides who may use weak TLS. It does not teach a Windows 7 kiosk or a Java 11 partner to speak X25519MLKEM768. That traffic stays classical until someone upgrades the client.
A migration plan written from the server side usually skips this. It says "enable the hybrid group, raise the floor to TLS 1.2", and forgets the partner bank on an old JDK, the point-of-sale terminals, and the script someone still runs against an old API host. This guide turns those clients into a list with owners and dates.
What Legacy TLS Clients Can Actually Negotiate
Two common cases, from primary sources:
Windows 7. Microsoft's Schannel protocol table lists TLS 1.1 and 1.2 as present but "Disabled" for both client and server on Windows 7, and TLS 1.3 as "Not supported". The same page says "TLS 1.3 is supported starting in Windows 11 and Windows Server 2022." To use TLS 1.2 from WinHTTP, Windows 7 needs KB3140245 and registry changes. Its default cipher list has only CBC variants of the TLS_ECDHE_RSA_* suites, on P-256 and P-384. Extended support ended in January 2020.
Java 11. The JDK 11 JSSE guide lists "TLS: version 1.0, 1.1, 1.2, and 1.3". X25519 in TLS reached the 11u line only in 11.0.10, through the backport JDK-8256030. TLS 1.0 and 1.1 were disabled by default in 11.0.11 (JDK-8202343). Hybrid ML-KEM key exchange in the JDK comes from JEP 527, delivered in JDK 27 (September 2026). Check your JDK vendor's crypto roadmap before you assume any 11.0.x update can do it. A partner pinned to an older 11.0.x build certainly cannot.
| Client | Highest TLS | Offers X25519MLKEM768 | Hits your main endpoint |
|---|---|---|---|
| Windows 7, defaults | TLS 1.0 | No | Fails once the floor is TLS 1.2 |
| Windows 7 + KB3140245 and registry | TLS 1.2 | No | Works if your cipher list overlaps its own |
| Java 11.0.0 to 11.0.9 | TLS 1.3 | No | Works, no X25519 in TLS |
| Java 11.0.10+ | TLS 1.3 | No | Works, classical X25519 |
| JDK 27, current browsers | TLS 1.3 | Yes | Works, post-quantum |
Note the middle rows. A Java 11 client does not break when you add the hybrid group. It falls back to a classical group and keeps working, so nobody notices it. The inventory has to find it.
Step 1: Log the Handshake of Every Legacy TLS Client
The nginx SSL module exposes what you need. $ssl_curves (1.11.7) "returns the list of curves supported by the client", $ssl_curve (1.21.5, needs OpenSSL 3.0+) the negotiated one, and $ssl_server_name (1.7.0) the SNI name:
log_format tls_inv '$remote_addr $ssl_protocol $ssl_curve $ssl_curves '
'"$ssl_server_name" "$http_user_agent"';
access_log /var/log/nginx/tls_inv.log tls_inv;
Then group callers by what they offered:
awk '{ pq = ($4 ~ /X25519MLKEM768|0x11ec/) ? "pq" : ($4 == "-" ? "unknown" : "classical");
print $1, $2, pq }' /var/log/nginx/tls_inv.log | sort | uniq -c | sort -rn
Unknown groups appear in hex, so match the hybrid's code point 0x11ec too. $ssl_curves "is available only for new sessions", so a resumed session shows up as unknown: count it on its next full handshake.
The access log has a blind spot: a client that fails the handshake never sends a request, so it never gets a line. If you already have kiosks failing, log at the TCP layer before termination with the stream ssl_preread module. $ssl_preread_protocol (1.15.2) is "the highest SSL protocol version supported by the client":
stream {
log_format hello '$remote_addr $ssl_preread_protocol "$ssl_preread_server_name"';
server {
listen 443;
ssl_preread on;
proxy_pass 127.0.0.1:8443;
access_log /var/log/nginx/hello.log hello;
}
}
Step 2: Give Every Caller an Owner and a Date
An IP address is not an inventory. Join each source IP with its owner (partner contract, store network range, CMDB entry) and write one row per caller:
- Source IPs or ranges, and the hostname they call
- Highest TLS version and whether they offer the hybrid group
- Owner and contact on their side
- Can they change the hostname or port they call? (A kiosk with a baked-in URL often cannot.)
- Upgrade path: OS, JDK update, vendor firmware, or none
- Sunset date, and the person who signed off on the risk until then
The hostname question decides your options in the next two steps.
Step 3: Run Old and New Endpoints Side by Side
First, the case that needs no split: post-quantum key exchange alone. One server block with ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1; serves hybrid clients and classical ones. You need a second endpoint only when you raise the floor (drop TLS 1.0 and 1.1) or require the hybrid group.
You cannot do it per URL path. ssl_protocols has the context http, server only. The handshake ends before nginx reads the request line, so there is no path to match yet.
For clients that can move to a new hostname, give the legacy endpoint its own address:
# Main endpoint
server {
listen 443 ssl default_server;
server_name api.example.com;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
# ssl_certificate ...
}
# Legacy endpoint on its own IP, for named peers only
server {
listen 192.0.2.20:443 ssl default_server;
server_name legacy-api.example.com;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5:@SECLEVEL=0;
allow 203.0.113.0/28; # partner bank
deny all;
location /v1/payments/ { proxy_pass http://app; }
location / { return 404; }
}
Why a separate IP and not just a second server_name on the same address? The nginx docs say that for ssl_protocols at server level "the value from the default server can be used", and the nginx changelog fixed this only in 1.29.2: "now the "ssl_protocols" directive works in a virtual server different from the default server when using OpenSSL 1.1.1 or newer." On an older nginx, a second name on the same address silently gets the default server's protocols. A client without SNI also lands on the default server. Its own IP avoids both problems. The location blocks then cut the weak endpoint down to the paths the partner really uses.
Step 4: Scope Weak TLS to Known Peers by Source IP
When the client cannot change the hostname it calls, split by source address in the stream module, in front of both servers. The stream geo module (1.11.3) "creates variables with values depending on the client IP address":
stream {
geo $tls_backend {
default 127.0.0.1:8443; # modern
203.0.113.0/28 127.0.0.1:9443; # partner bank
198.51.100.0/24 127.0.0.1:9443; # store kiosks
}
server {
listen 443;
proxy_pass $tls_backend;
proxy_protocol on;
}
}
http {
server {
listen 127.0.0.1:8443 ssl proxy_protocol default_server;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
set_real_ip_from 127.0.0.1;
real_ip_header proxy_protocol;
}
server {
listen 127.0.0.1:9443 ssl proxy_protocol default_server;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5:@SECLEVEL=0;
set_real_ip_from 127.0.0.1;
real_ip_header proxy_protocol;
}
}
proxy_protocol on passes the real client address to the HTTP servers, so logs and allow rules still see it. The choice is made once per TCP connection: every request on that connection, including keep-alive requests and HTTP/2 streams, goes to the same backend. It is a per-peer policy, never a per-path one. If you also make routing decisions from ssl_preread variables, run nginx 1.31.9 or later, which fixed a ClientHello parsing difference that "might result in bypassing security restrictions" (CVE-2026-123640, in the changelog).
Why the Fence Does Not Make Old Clients Post-Quantum
The fence limits who gets weak TLS. It does not change what the client sends. Windows 7 has no TLS 1.3, and hybrid ML-KEM key exchange exists only in TLS 1.3, so there is no server setting that gives that kiosk a post-quantum session. A Java 11 client speaks TLS 1.3 but offers no ML-KEM group, so it gets classical X25519 or P-256. Both are still exposed to record-now, decrypt-later.
Your real options for those peers:
| Option | Where the classical hop remains | Who must act |
|---|---|---|
| Upgrade the runtime (JDK with JEP 527, a supported OS) | Nowhere | Client owner |
Forward proxy next to the client that re-encrypts with the hybrid group (for example nginx proxy_ssl_conf_command Groups X25519MLKEM768) |
Client to proxy, on their LAN | Client owner and you |
| Keep the fenced endpoint | Across the internet | You, with a signed risk and a date |
The third row is a decision, not a config. Someone accountable for that data should sign it.
Troubleshooting
The Windows 7 client fails after you set TLSv1.2 as the floor. TLS 1.2 is disabled by default on Windows 7. Apply KB3140245 and its registry settings, or route the client to the legacy endpoint.
TLSv1 is in ssl_protocols, but old clients still fail. On OpenSSL 3, TLS 1.0 and 1.1 need security level 0. An OpenSSL maintainer answered the same question: add @SECLEVEL=0 to the cipher string. Do this only on the fenced server.
The legacy server block has no effect. Your nginx is older than 1.29.2 and the block shares an address with the default server. Give it its own IP or port.
A Windows 7 client with TLS 1.2 enabled still fails with no shared cipher. Its ECDHE-RSA suites are CBC only. Check that your ssl_ciphers on that server still allows them.
$ssl_curves shows -. The session was resumed, or nginx uses OpenSSL older than 1.0.2.
Let an Agent Do the Counting
Finding callers is search work: read the TLS logs on every edge host, group by source, compare nginx -T output between hosts. Akmatori can run that as a skill on a schedule, through the SSH connector, which allows only diagnostic commands unless you allow more. It reports who still negotiates classical groups. Keeping a weak endpoint alive stays a human decision. For the server-side checks, see Post-Quantum TLS: the 5-minute fix, and for finding old JDKs inside your own fleet, the internal Java inventory.
Conclusion
Legacy TLS clients do not block a post-quantum rollout, but they hide inside it. Log $ssl_curves and $ssl_preread_protocol to find them, give each one an owner and a date, and fence weak TLS by IP on its own server block. Then be honest in the risk register: the fence keeps old clients working, and their traffic stays classical until they upgrade.
If your team wants AI-assisted incident workflows on your own infrastructure, Akmatori helps SRE teams investigate alerts, coordinate response, and audit TLS clients across the fleet. Powered by Gcore for global infrastructure reliability.
