Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Post-Quantum TLS Key Exchange, Origin Rollout, and Verification

How hybrid X25519MLKEM768 works on TLS 1.3, Cloudflare automatic key exchange to origins, compliance limits, and ways to measure and test it.

This page summarizes Cloudflare documentation on post-quantum TLS key agreement, with emphasis on the connection from Cloudflare’s edge to your origin server: what X25519MLKEM768 does, how Automatic key exchange chooses and rolls out a preferred key share, which dashboard settings apply, and how to confirm behavior with logs and Radar tests.

Post-quantum key agreement: hybrid X25519MLKEM768 on TLS 1.3

Section titled “Post-quantum key agreement: hybrid X25519MLKEM768 on TLS 1.3”

Post-quantum cryptography (PQC) here means algorithms meant to resist future quantum attacks. For TLS key agreement, Cloudflare deploys a hybrid that combines classical X25519 with post-quantum ML-KEM (exposed in TLS as X25519MLKEM768).

Post-quantum cryptography (PQC) refers to cryptographic algorithms that have been designed to resist attacks from quantum computers. To protect you against the risk of harvest-now, decrypt-later attacks, and considering all the connections that take place when your website or application is on Cloudflare, we have deployed and are actively expanding the use of post-quantum hybrid key agreement.

— Cloudflare, Post-quantum cryptography (PQC)

On the visitor → Cloudflare leg, all sites on TLS 1.3 can negotiate hybrid key agreement when the client supports it. On the Cloudflare → origin leg, post-quantum protection requires your origin (or Cloudflare Tunnel) to support the same algorithms. Cloudflare documents that path in Post-quantum between Cloudflare and origin servers and PQC in Cloudflare products.

Adding ML-KEM often makes the TLS 1.3 ClientHello span two packets. That is valid in RFC 8446 but can break on middleboxes or buggy stacks—a theme behind Radar’s TLS bug checks (covered below).

Automatic key exchange to origins: avoid an extra HelloRetryRequest round trip

Section titled “Automatic key exchange to origins: avoid an extra HelloRetryRequest round trip”

Automatic key exchange is Cloudflare’s feature that speeds up and secures outbound TLS 1.3 connections to your origins by predicting which key agreements the origin supports and sending the preferred key share in the first ClientHello.

Automatic key exchange allows Cloudflare to establish faster connections to origin servers by predicting which key agreements origins support. When establishing a TLS 1.3 connection to the origin, Cloudflare sends a key share for the predicted key agreement in the initial ClientHello, which can remove one network round trip by avoiding a HelloRetryRequest.

— Cloudflare, Automatic key exchange to origins

This is separate from SSL/TLS encryption mode: encryption mode controls HTTPS to the origin and certificate validation; automatic key exchange only controls which key shares Cloudflare offers when starting that HTTPS connection. One preference applies to all origins in the zone (including fetch() from Workers), derived from traffic-weighted scans when multiple origins are active.

When automatic key exchange runs (requirements and scope)

Section titled “When automatic key exchange runs (requirements and scope)”

Automatic key exchange applies only when all of the following hold, per Automatic key exchange to origins:

Requirement Why it matters
SSL mode Full, Full (strict), or Strict (SSL-Only Origin Pull) Origin pull over HTTPS
Origin negotiates TLS 1.3 with Cloudflare PQ key agreements are TLS 1.3
Zone does not use Cloudflare Tunnel for that path Tunnel uses its own post-quantum connection between cloudflared and Cloudflare

It is available on all plans, affects new TLS connections only (not reused connections), and Cloudflare Tunnel is called out separately for post-quantum between cloudflared and Cloudflare in the same document.

How Cloudflare selects X25519MLKEM768 and rolls it out safely

Section titled “How Cloudflare selects X25519MLKEM768 and rolls it out safely”

Cloudflare scans active origins about every 24 hours, learns supported key agreements, and prefers post-quantum when both classical and PQ options exist.

When an origin supports both classical and post-quantum key agreements, Cloudflare prefers a post-quantum key agreement.

— Cloudflare, Automatic key exchange to origins

Rollout is gradual: preferred key share on 1% of traffic, monitoring failures and HelloRetryRequest rates, then stepping through 10%, 25%, 50%, 75%, 100% if healthy, or rolling back if not. Cloudflare selects X25519MLKEM768 when the origin supports it and compliance requirements allow it; otherwise it picks a supported classical group. It still advertises other allowed groups so the origin can request another share via HelloRetryRequest (one extra round trip, connection intact).

Automatic key exchange is on for all existing zones and on by default for new zones.

— Cloudflare, Faster and more secure TLS handshakes to your origins, automatically

SSL/TLS dashboard: Automatic key exchange and Compliance requirements

Section titled “SSL/TLS dashboard: Automatic key exchange and Compliance requirements”

Configure both under SSL/TLS → Overview → Origin connection & post-quantum encryption, as described in Automatic key exchange to origins and Post-quantum between Cloudflare and origin servers.

Setting Behavior
On Scan origins and send the zone’s preferred key share
Off No scan or reorder; default order for selected compliance requirements

Compliance requirements apply only to TLS 1.3 and filter which key agreements Cloudflare may advertise or select. Automatic selection never picks outside the allowed set. Changing compliance stops an active rollout; the next scan picks from the new set.

Dashboard selection API value Effect
No selection [] Classical and post-quantum agreements Cloudflare supports
Post-quantum hybrid ["pqh"] Hybrid post-quantum only
FIPS ["fips"] FIPS-compliant key agreements only
Post-quantum hybrid and FIPS ["pqh", "fips"] Must satisfy both

Cloudflare rejects incompatible combinations with no key agreement in common. Turning off automatic key exchange does not change compliance requirements.

Other Cloudflare legs: clients, email, and signatures

Section titled “Other Cloudflare legs: clients, email, and signatures”

Inbound client → Cloudflare: Hybrid key agreement is deployed; per-zone measurement uses Logpush (below). Global adoption appears on Radar’s post-quantum adoption views described in the Radar glossary.

Cloudflare Email Security (MX): Inbound and outbound SMTP over TLS 1.3 negotiate X25519MLKEM768 when the peer supports it, automatically and backward-compatibly—see Post-quantum key exchange for MX deployments.

Authentication (signatures): ML-DSA on the origin path is documented separately (Authenticated Origin Pulls, Custom Origin Trust Store) in Post-quantum between Cloudflare and origin servers; this page focuses on key exchange.

Per-zone visibility: ClientTLSKeyExchangeGroup in Logpush and Log Explorer

Section titled “Per-zone visibility: ClientTLSKeyExchangeGroup in Logpush and Log Explorer”

To see your zone’s share of post-quantum key agreement (not only global Radar stats), use the http_requests Logpush dataset and Log Explorer.

The field reports the TLS key exchange group negotiated on the client-to-Cloudflare connection, by group name. Post-quantum connections appear as X25519MLKEM768, and classical connections appear as X25519, P-256, or another named group. A value of UNK means the group could not be determined, and NONE means either RSA key exchange was used or TLS was not used.

— Cloudflare, Per-zone post-quantum visibility in Logpush and Log Explorer

You can break down percentages by hostname, path, user agent, or country and ship logs to a SIEM via Logpush. Product status is summarized under “Visitor to Cloudflare” in PQC in Cloudflare products.

Test origins and public hosts: Cloudflare Radar and local TLS probes

Section titled “Test origins and public hosts: Cloudflare Radar and local TLS probes”

Origin server: confirm X25519MLKEM768 with BoringSSL

Section titled “Origin server: confirm X25519MLKEM768 with BoringSSL”

From your workstation, Cloudflare recommends exercising the origin with bssl:

bssl client -connect <YOUR_ORIGIN>:443 -curves X25519MLKEM768

Verify the handshake reports ECDHE curve X25519MLKEM768, per Post-quantum between Cloudflare and origin servers. Third-party library support is listed in PQC support (reference only; maintainers own correctness).

Radar exposes tools and APIs to test arbitrary hosts and view origin support trends. Endpoints documented in Post-Quantum Encryption and Key Transparency on Cloudflare Radar and Radar release notes include:

  • /post_quantum/tls/support — test whether a host supports post-quantum TLS key exchange (includes TLS bug data when applicable)
  • /post_quantum/origin/summary/{dimension} — summarized origin data by key agreement
  • /post_quantum/origin/timeseries_groups/{dimension} — time series by key agreement

The Post-Quantum Encryption UI lets you enter a hostname and optional port to see negotiated algorithms. Origin support charts reflect algorithm support from daily TLS 1.3 scans, not necessarily the origin’s configured preference—same changelog.

Radar’s browser support check on the Adoption & Usage card reports whether the current browser negotiates post-quantum with Cloudflare and shows the key agreement in use; see Browser Support Detection for PQ Encryption on Cloudflare Radar.

TLS bugs the Radar post-quantum checker reports

Section titled “TLS bugs the Radar post-quantum checker reports”

When handshake tests fail in PQ-specific ways, Radar can classify:

Bug Typical cause
Split ClientHello PQ ClientHello fragmented and fails; classical works—often middleboxes/firewalls
HRR Failure HelloRetryRequest sent but handshake does not complete
Unknown Keyshare Server fails instead of HelloRetryRequest for unknown groups (TLS 1.3 violation)

Details and remediation hints appear only when issues are found; data is returned via /post_quantum/tls/support, per TLS bug detection in the Cloudflare Radar post-quantum checker.

Common mistakes when rolling out post-quantum to origins

Section titled “Common mistakes when rolling out post-quantum to origins”
  • Treating encryption mode and automatic key exchange as the same control—they address certificates/HTTPS vs key-share ordering (Automatic key exchange to origins).
  • Expecting PQ origin key exchange through Cloudflare Tunnel on the same code path; tunnel uses a separate post-quantum link (cloudflared ↔ Cloudflare).
  • Setting Post-quantum hybrid compliance while the origin lacks hybrid support—selection and rollout stay within the allowed set and may never prefer PQ.
  • Ignoring split ClientHello on the path to the origin when enabling X25519MLKEM768—see Radar bug detection and Post-quantum between Cloudflare and origin servers.
  • Relying on the Origin Post-Quantum Encryption API—documented as non-functional for behavior changes.
  1. In the Cloudflare dashboard, open SSL/TLS Overview and confirm Origin connection & post-quantum encryption: Automatic key exchange and Compliance requirements match your policy (FIPS, hybrid-only, or allow all).

  2. Confirm the zone uses Full or stricter origin SSL and that origins speak TLS 1.3 without going through Cloudflare Tunnel for that hop, per Automatic key exchange to origins.

  3. On the origin, run bssl client with -curves X25519MLKEM768 as in Post-quantum between Cloudflare and origin servers.

  4. Query Log Explorer or Logpush http_requests for ClientTLSKeyExchangeGroup to measure inbound PQ share on your zone (Per-zone post-quantum visibility); optionally run the Radar host test via Post-Quantum Encryption documentation.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.