Migration guide
Sites behind a CDN, load balancer or managed platform: edge versus origin
An external handshake test only measures the first TLS connection, which ends at whatever terminates TLS for you. This guide shows how to work out what that is, what to ask the provider, and how to check the edge-to-origin leg.
Documentation only
How this guide was validated. Drafted from the cited sources and not run here. The openssl s_client commands were run on loopback against a local test server (see verify-tls-key-exchange). No vendor service, edge or origin was contacted. The Cloudflare statements are quoted from its documentation as fetched on 2026-12-04 and not tested.
Applies to
- Any site served through a CDN, reverse proxy, load balancer or managed hosting platform
- Cloudflare statements are cited from its official documentation; no other vendor is covered
Before you start
- Access to your DNS records and to the CDN, load balancer or platform settings.
- OpenSSL 3.5 or later for s_client checks.
- A list of the hostnames you serve.
Steps
- Find out what terminates TLS
Ask these in order. (1) Look at your DNS records for the hostname in your DNS provider. A CNAME or alias to a provider name, or addresses owned by a provider, means the provider answers first. (2) Read your platform or CDN dashboard for TLS or SSL settings. (3) Look at the certificate that a client sees. If the issuer or subject is the provider, not yours, the provider terminates TLS. (4) Ask whoever runs infrastructure. Write down, per hostname, who terminates TLS and where the next hop goes.openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null | openssl x509 -noout -issuer -subject - Read an external handshake correctly
The first connection runs from the client to the edge. The result tells you what the edge accepts. It tells you nothing about the leg from the edge to your origin, which is a second, separate TLS connection (or plain HTTP, if you allow it). Many providers show you only the first leg. - Ask the provider these questions
Use your own wording, and ask for documentation or a written answer. 1) Which key-exchange groups does the edge accept from clients, and is the hybrid X25519MLKEM768 on by default or a setting? 2) Does the edge-to-origin connection offer hybrid key exchange, and can you see or control it? 3) What happens if the origin does not support it: fallback to classical, or an error? 4) Is there a setting that forces hybrid and can break connections? 5) Which TLS versions does each leg use? Hybrid key exchange needs TLS 1.3. 6) Where do other traffic types (API, websockets, tunnels, mail) terminate? - Check the edge-to-origin leg yourself
If the origin has its own public address or name that you are allowed to test, connect to it directly with the same s_client commands as in verify-tls-key-exchange, using the origin hostname. This tests the origin server the way the edge would see it. It is not the same as the edge actually using it. Whether the edge uses hybrid towards the origin is a provider matter: ask, check the provider documentation or settings, and look at origin server logs if they record the TLS group.openssl s_client -connect origin.example.com:443 -servername origin.example.com </dev/null 2>&1 | grep -E "Negotiated TLS1.3 group|Peer Temp Key|Protocol" - Cloudflare, as documented by Cloudflare
Cloudflare documents that websites and APIs served through it over TLS 1.3 support post-quantum hybrid key agreement, that the connection is post-quantum only if the client also supports it, and that Cloudflare also supports hybrid key agreement when connecting to origins, where a post-quantum connection depends on the origin also supporting it. For the origin leg, its documentation says "Automatic key exchange" is on for existing zones and on by default for new zones, and that Cloudflare prefers post-quantum key agreement when the origin supports both. It gives a way to test an origin: bssl client -connect YOUR_ORIGIN:443 -curves X25519MLKEM768, then check that the ECDHE curve in the output shows X25519MLKEM768. bssl is BoringSSL's tool and was not available or run here. Cloudflare also documents that a "Post-quantum hybrid" compliance requirement returns a 525 error if the destination lacks support, and that the PQ ClientHello is usually split over two packets, which some origins or middleboxes may mishandle. Read the pages in sources for the current wording, since provider settings change.
Verify
- Record a result per leg
For each hostname write down: terminating party, edge result (from verify-tls-key-exchange), origin result (direct test, if allowed), provider answer on the edge-to-origin leg, and the date. Mark any leg you could not check as "not checked", not as "ok".
Roll back
- No change is made by this guide
It only reads. If you later change a provider setting such as forcing hybrid on the origin leg, note the previous value first and restore it if connections fail. Do this per the provider documentation.
What this guide does not cover
- An edge handshake result says nothing about the origin, and an origin result says nothing about what the edge actually uses to reach it.
- Providers can change defaults. Re-check sources and the live result before relying on either.
- 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.
- Cloudflare statements come from the documentation only. We did not test any Cloudflare service. No other vendor is covered because no other vendor documentation was verified.
- Traffic that does not use the HTTP front door (databases, SSH, mail, VPN, internal service-to-service calls) is outside this guide.
- Seeing the certificate issuer shows who presents the certificate to clients. It does not prove who else handles the traffic behind them.