Migration guide

Post-quantum key exchange on Cloudflare: edge and origin

Cloudflare's edge supports the hybrid group X25519MLKEM768 for visitor connections. For the separate Cloudflare-to-origin connection, Automatic Key Exchange is on by default and prefers X25519MLKEM768 when your origin supports it. Check both legs and verify the visitor leg with our check.

Documentation only Last reviewed 2026-12-04

How this guide was validated. Drafted from Cloudflare's SSL/TLS documentation (PQC in Cloudflare products, automatic key exchange to origins, post-quantum to origin) and the July 2026 changelog. Dashboard labels can change; not checked in a Cloudflare account here.

Applies to

  • Sites proxied through Cloudflare (orange-cloud DNS records)
  • Cloudflare SSL/TLS settings: Automatic Key Exchange and compliance requirements

Before you start

  • Your site is proxied through Cloudflare. If a DNS record is DNS-only, visitors connect to your origin directly and the origin's own TLS settings apply.
  • Access to the zone's SSL/TLS settings.

Steps

  1. Check the visitor-to-Cloudflare leg
    Cloudflare documents X25519MLKEM768 key agreement as supported for inbound TLS 1.3 (including QUIC) from visitors to its edge. Our check measures exactly this leg for a proxied hostname.
  2. Check the Cloudflare-to-origin leg
    In the dashboard, go to SSL/TLS > Overview > Origin connection & post-quantum encryption. Automatic key exchange is on for all existing zones and on by default for new zones; it prefers X25519MLKEM768 when the origin supports it and your compliance requirements allow it. Cloudflare's conditions: the zone uses Full, Full (strict) or Strict (SSL-Only Origin Pull) mode, the origin negotiates TLS 1.3, and the zone does not connect through Cloudflare Tunnel.
  3. Make sure the origin itself offers the hybrid group
    Use the guide for your origin server (nginx, Caddy, Apache, HAProxy, or a cloud load balancer). A legacy curve list on the origin can override newer defaults.
  4. Be careful with the Post-quantum hybrid compliance requirement
    The Post-quantum hybrid compliance requirement makes Cloudflare advertise only X25519MLKEM768 to origins. An origin that does not support it fails the handshake and visitors get a 525 error. Leave Automatic key exchange on to keep compatibility with origins that have not switched.

Verify

  1. Check the origin leg yourself
    Our check cannot see the Cloudflare-to-origin connection. Cloudflare suggests BoringSSL's bssl client against your origin and checking that the ECDHE curve in the output is X25519MLKEM768; openssl s_client 3.5 or later against the origin address works too.
    bssl client -connect <origin-ip>:443 -curves X25519MLKEM768
    openssl s_client -connect <origin-ip>:443 -servername example.com -tls1_3 </dev/null 2>&1 | grep -E "Negotiated TLS1.3 group|Peer Temp Key"

Verify with our check

Run the public checker on your hostname at postquantumverified.com. It opens one TLS 1.3 handshake on port 443 and shows Verified (the server selected the hybrid group X25519MLKEM768), Not post-quantum (it selected a classical group) or Could not check. Each check gets a dated record at /verify/{hostname} that anyone can open again. If the result is not Verified, see Why did my check say Not post-quantum? and Why did my check say Could not check?.

The checker tests the public HTTPS endpoint on port 443 of the exact hostname you enter. Mail (SMTP, IMAP) and other ports are not covered by it.

Roll back

  1. Revert a compliance requirement
    If you restricted key agreements and connections fail, set compliance requirements back to no selection and keep Automatic Key Exchange on.

What this guide does not cover

  • Our check covers one connection to the public endpoint that answers for the hostname. For a proxied site that is Cloudflare's edge, not your origin.
  • Cloudflare Tunnel uses a separate post-quantum connection between cloudflared and Cloudflare, not covered here.
  • A key-exchange result says nothing about certificate signatures.

Sources

Only change systems you own or are authorized to change. Have a person approve each change and keep a rollback.