Skip to content

Protect traffic with post-quantum encryption on Cloudflare

Cloudflare protects traffic with post-quantum encryption today. On proxied websites and APIs, Cloudflare automatically negotiates hybrid key exchange with compatible clients when TLS 1.3 is enabled. For origins, workforce connections, and network tunnels, the protection in use depends on how you connect and what the other endpoint can negotiate.

Use this guide to verify where your traffic already uses post-quantum encryption and configure the connections that still need it. For the underlying technology, refer to Post-quantum cryptography. For current coverage, refer to PQC in Cloudflare products.

Websites and APIs

When Cloudflare serves your website or API, the visitor connection and the connection to your origin are protected separately. Start with the traffic reaching Cloudflare, then check how Cloudflare connects to your origin. This lets you see where post-quantum encryption is already in use and where a configuration change would help.

Check visitor traffic

  1. Select your zone and go to Analytics > HTTP Traffic.

    Go to HTTP Traffic ↗
  2. Find the TLS Key Exchange card. Traffic labeled X25519MLKEM768 negotiated hybrid key exchange. X25519 alone is classical.

  3. If no traffic uses X25519MLKEM768, go to SSL/TLS > Edge Certificates. Turn TLS 1.3 on if it is off. If it is already on, check browser or API client support. Retry with a compatible client and check HTTP Traffic again.

    Go to Edge Certificates ↗

Configure the origin connection

If your origin cannot yet negotiate post-quantum key exchange, you can use Cloudflare Tunnel to protect the connection between Cloudflare and cloudflared without upgrading the origin server.

For an origin behind Cloudflare Tunnel, use the connector settings. For a direct HTTPS origin:

  1. Go to SSL/TLS > Overview and select Automatic SSL/TLS. Cloudflare selects the most secure encryption mode your origin supports.

    Go to Overview ↗
  2. Under Origin connection & post-quantum encryption, turn on Automatic key exchange. Cloudflare prefers post-quantum hybrid key exchange when the origin supports it and retains compatibility when it does not.

  3. If you use HTTP Requests Logpush, include OriginTLSKeyExchangeGroup and ClientTLSKeyExchangeGroup in the job. In your log destination, find a request that reached the origin. Look for X25519MLKEM768 in the origin field; the client field describes the visitor connection. Refer to the visibility walkthrough ↗︎ for examples.

    Go to Logpush ↗

Authenticate a direct origin connection

Key exchange protects traffic confidentiality. It does not verify the certificate signature. Open SSL/TLS > Origin Server, then choose the setting for the identity you want to verify:

Go to Origin Server ↗
  • Cloudflare verifies the origin: With Full (strict), configure Custom Origin Trust Store with an ML-DSA certificate authority. A custom trust store replaces the zone’s default public certificate authorities. Confirm that Cloudflare can validate all affected origins before switching.
  • The origin verifies Cloudflare: Configure Authenticated Origin Pulls with an ML-DSA client certificate and configure the origin to verify it.

Follow the origin authentication setup for the direction you need, including how to reject classical certificates to prevent fallback.

Zero Trust and workforce access

Employees use Cloudflare to reach private applications and administer servers. Check how employees connect to Cloudflare, then configure the Tunnel connector or SSH access they use to reach the resource.

Cloudflare One Client

  1. In Zero Trust, open Team & Resources > Devices > Device profiles. Under General profiles, edit the profile that applies to your devices.

    Go to Device Profiles ↗
  2. If Device tunnel protocol is set to WireGuard, change it to MASQUE. If MASQUE is already selected, leave it on. Refer to device profile settings.

  3. On a connected device, run warp-cli settings and confirm the active protocol is MASQUE.

Browser-only Access

Check visitor traffic for the proxied application hostname. Use TLS 1.3 and a compatible browser. No device profile change is needed for browser-only access.

Private applications behind Cloudflare Tunnel

These settings apply to the connection between cloudflared and Cloudflare.

  1. Check the transport used by the connector. Use QUIC for post-quantum key exchange. HTTP/2 does not support it.

  2. By default, cloudflared tries post-quantum key exchange first. If it cannot establish a post-quantum connection, it can fall back to classical key exchange. To require post-quantum key exchange without fallback, set the transport to quic and enable --post-quantum. Refer to the Tunnel run parameters for your installation.

Cloudflare Gateway: protect inspected HTTPS traffic

When Gateway inspects HTTPS traffic, it terminates the client’s TLS connection and uses a separate TLS connection to the destination website. Gateway automatically negotiates hybrid post-quantum key exchange with compatible destinations over TLS 1.3. Post-quantum protection on this connection is independent of how traffic reaches Gateway.

  1. Check the connection to Gateway. For devices using the Cloudflare One Client, set Device tunnel protocol to MASQUE in the applicable device profile. Run warp-cli settings on the device to confirm that MASQUE is active. For sites connected through IPsec, follow the hybrid key exchange guidance in the Magic Transit and Cloudflare WAN section.

  2. Verify the connection from Gateway. From a device whose HTTPS traffic Gateway inspects, open the Cloudflare post-quantum test site ↗︎. Confirm that Gateway inspected the test request. The result shows the key exchange between Gateway and that site. It does not verify the connection from the device or site to Gateway. Other websites negotiate independently.

Refer to Post-quantum cryptography in Cloudflare One: Secure Web Gateway for the connection example.

Access for Infrastructure SSH

The SSH proxy defaults to hybrid key exchange (mlkem768x25519-sha256) between the client and the proxy and between the proxy and the server. This protects session traffic. Host keys and short-lived user certificates are separate. Refer to SSH protection by type.

Magic Transit and Cloudflare WAN

Magic Transit and Cloudflare WAN can carry traffic between your network and Cloudflare over a tunnel. Start with the type of tunnel you use to determine whether post-quantum encryption applies. For an encrypted tunnel, the device on your side determines what to configure or verify.

Third-party IPsec router or firewall

  1. In Networking > Connectors, select your IPsec tunnel. Check the validated device list for the peer router model, software release, and supported ML-KEM variant.

    Go to Connectors ↗
  2. In the router’s IKEv2 Phase 1 proposal, configure DH Group 20 with ML-KEM as an additional exchange and enable IKEv2 fragmentation. Group 20 alone is classical. Cloudflare recommends ML-KEM-768 where supported. Refer to the supported tunnel settings.

  3. For handshake diagnostics, use the IPsec logs dataset in Logpush. In your log destination, inspect the Message field. A healthy tunnel confirms connectivity. If the handshake details do not identify ML-KEM, they do not confirm a hybrid exchange.

    Go to Logpush ↗

Cloudflare One Appliance on Cloudflare WAN

Check the appliance software version instead of editing an IKEv2 proposal. Starting with version 2026.2.0, the appliance establishes its IPsec traffic keys over a TLS 1.3 control connection using hybrid ML-KEM. The version confirms documented support, not the result of a specific live handshake. Refer to how the appliance establishes keys.

Workers, Pages, and storage

An application can receive visitors, call an API, and use storage or private services. Each connection is protected separately. Use the sections that match how your application runs to see which settings you control and which connections Cloudflare manages for you.

Check a public hostname

Workers custom domains, workers.dev, Pages, and public R2 endpoints use Cloudflare’s visitor-facing TLS. For a platform hostname such as workers.dev, inspect that hostname’s negotiated group in a compatible browser. For a custom domain in your zone:

  1. Open SSL/TLS > Edge Certificates and check that TLS 1.3 is on.

    Go to Edge Certificates ↗
  2. Open Analytics > HTTP Traffic. Look for X25519MLKEM768 in the TLS Key Exchange card. If it is absent, follow the visitor checks.

    Go to HTTP Traffic ↗

Configure outbound API calls

Outbound HTTPS fetch() calls from Workers running under your zone use the zone’s origin connection settings.

  1. Open SSL/TLS > Overview > Origin connection & post-quantum encryption.

    Go to Overview ↗
  2. Keep Automatic key exchange on for compatibility. Before selecting Post-quantum hybrid, check all affected destinations, not just the API called by one Worker. Cloudflare can return HTTP 525 for an incompatible destination.

Storage bindings

Cloudflare manages the connection and its migration when a Worker uses a binding to access D1, KV, Durable Objects, or R2. No configuration change is needed for the binding. For rollout information, refer to post-quantum protection on Cloudflare’s internal network.

Configure private access through Cloudflare Tunnel

For Workers VPC over Cloudflare Tunnel, use the Tunnel connector settings for transport and fallback rather than the zone’s origin setting.

Was this helpful?