What to migrate first in WAFs and API gateways and what breaks

Move TLS 1.3 and library support first, then enable hybrid key exchange at the client-facing edge, then origins, with signatures last. Hybrid key exchange only applies to TLS 1.3 and breaks clients or origins that do not support it.

On this page

Which WAF and API gateway should you migrate first, and why

Start with the TLS 1.3 listeners that face clients, and enable the client-facing hybrid key exchange X25519MLKEM768 there first. As of December 2026, the vendor sources listed on this page describe post-quantum key exchange as supported at the edge, on TLS 1.3, and not as a general property of every component in the path. The NGINX and HAProxy blogs, Google Cloud, AWS, Cloudflare and Akamai documentation all describe this same starting point: the client-to-edge leg is where support is most mature, and signatures and origin legs come later. If your estate mixes WAFs, load balancers and API gateways that terminate TLS, sort them by whether each one is internet-facing, which TLS versions it accepts and whether its vendor page names a post-quantum setting. Confirm each of these against the current vendor documentation, because these features change between releases.

Before you change any setting, work through the dependencies that break. Clients limited to TLS 1.2 fall back to classical ECDHE or fail to connect, depending on configuration, so measure how much TLS 1.2 traffic still arrives. In NGINX, a curve list that omits X25519MLKEM768 disables the hybrid group, and OpenSSL older than 3.5 has no ML-KEM, so upgrade the library first. Hybrid ClientHello messages are much larger, since an ML-KEM-768 key is about 1,184 bytes against 32 bytes for an X25519 key share, so test latency-sensitive or MTU-constrained paths. Cloudflare's Post-quantum hybrid setting returns a 525 error when the destination does not support the key exchange, and this also affects outbound fetch() calls from Workers on that zone, so upgrade origins before enforcing it. Akamai's PQC to Origin is disabled by default, and a HelloRetryRequest adds one round trip when the origin lacks support.

Which product and leg each migration fact applies to

This table lists each platform named in the migration sources, the leg of the connection it covers (client-to-edge or edge-to-origin), the default or setting that applies, and the source with its date. Read each row as a statement about one leg only, because a fact for the client-facing leg does not show that the backend leg is also post-quantum. Confirm each setting in your own configuration before you treat any row as settled.

PlatformLeg coveredDefault or settingSource and date
NGINXClient-to-edgeHybrid key exchange applies only to TLS 1.3, and a curve list that omits X25519MLKEM768 disables the hybrid groupNGINX PQC blog, undated in the sources
HAProxyClient-to-edge onlyThe post covers only the client-facing leg, and HAProxy-to-backend traffic stays classical unless backends also support post-quantum key exchangeHAProxy PQC blog, undated in the sources
Google Cloud load balancingClient-to-edge (frontend TLS)Enabled by default since October 2026 for load balancers with no SSL policy or one without a post-quantum setting, and the DEFERRED setting delays enablement until October 2027Google Cloud PQ TLS, October 2026 default date as stated in the source
AWS CloudFrontClient-to-edgeHybrid post-quantum key establishment is on in all existing security policiesAWS CloudFront announcement, September 2025
AWS ALB and NLBClient-to-edge (listener)Each listener must be switched to a PQ-TLS policy before the feature appliesAWS ALB NLB announcement, November 2025
CloudflareEdge-to-originAutomatic key exchange prefers X25519MLKEM768 when the origin supports it, and a HelloRetryRequest adds one round trip otherwiseCloudflare PQC to origin, undated in the sources
AkamaiEdge-to-originPQC to Origin is disabled by default and adds one round trip through a HelloRetryRequest when the origin lacks X25519MLKEM768Akamai TechDocs PQC to origin, undated in the sources

Which dependencies break first

Moving a WAF or API gateway to post-quantum key exchange depends on a chain of components, and a gap at any link can disable the hybrid group or break connections. The cards below cover the items most likely to stop the migration, in the order the sources suggest checking them.

TLS 1.3 support

Hybrid post-quantum key exchange in NGINX and HAProxy applies only to TLS 1.3. Clients limited to TLS 1.2 either fall back to classical ECDHE or fail to connect, depending on configuration. Before enabling anything, list which clients still negotiate TLS 1.2 through your gateway, and confirm that the edge accepts TLS 1.3 for them. Clients capped at TLS 1.2 get no post-quantum protection at all.

NGINX PQC blog

OpenSSL version

OpenSSL releases older than 3.5 have no ML-KEM, so the library must be upgraded before any configuration change will work. For NGINX on OpenSSL 3.0.x, NGINX describes the oqs-provider as experimental, not recommended for production, and a stopgap until OpenSSL 3.5 or later is available. Confirm the exact OpenSSL version your build links against, not only the version installed on the host.

NGINX PQC blog

Curve list omits the hybrid group

In NGINX, a curve list that omits X25519MLKEM768 disables the hybrid group, even when the library supports it. Review every ssl_ecdh_curve setting, including those inherited from included files and server blocks. A curve list copied from an older hardening guide is the most common reason the hybrid group is silently off. Verify the negotiated group with a test client after each change.

NGINX PQC blog

Origin leg stays classical

Protecting the client-to-edge connection does not protect the leg to your backends. HAProxy's guidance covers only the client-to-edge leg, and HAProxy-to-backend traffic stays classical unless the backends also support post-quantum key exchange. On Cloudflare, enabling the Post-quantum hybrid setting returns a 525 error when the origin does not support it, and this also affects outbound fetch() calls from Workers on that zone, so upgrade origins before enforcement. Akamai's PQC to Origin is disabled by default.

Cloudflare PQC to origin

Larger ClientHello messages

An ML-KEM-768 key is about 1,184 bytes, against 32 bytes for an X25519 key share, so the ClientHello and ServerHello messages grow considerably. HAProxy warns that these larger messages may exceed a single packet, so latency-sensitive or MTU-constrained paths should be tested first. Where an origin lacks X25519MLKEM768 support, Cloudflare and Akamai send a HelloRetryRequest, which adds one round trip per connection.

HAProxy PQC blog

Signatures lag key exchange

Key exchange can move to post-quantum before certificate signatures do. HAProxy says its signatures still use RSA or ECDSA, and CISA reports that most Table 2 categories have not widely adopted post-quantum signatures. Cloudflare lists visitor-leg signatures as planned through Merkle Tree Certificates. Plan certificate rotation separately, and ask each vendor which signature algorithms its gateway supports and when they will be enabled.

Cloudflare PQC products

How the migration order differs by platform

NGINX and HAProxy are configured by you, so nothing post-quantum is on until you upgrade the library and change the configuration. The first dependency is TLS 1.3. Hybrid post-quantum key exchange applies only to TLS 1.3, so clients limited to TLS 1.2 fall back to classical ECDHE or fail to connect, depending on configuration.

  • OpenSSL version: NGINX's guidance says OpenSSL older than 3.5 has no ML-KEM, so the library upgrade comes before any configuration change.
  • Curve list: a curve list that omits X25519MLKEM768 disables the hybrid group, so check the list after the upgrade.
  • Experimental provider: NGINX describes oqs-provider on OpenSSL 3.0.x as experimental and not recommended for production, a stopgap until OpenSSL 3.5 or later is available.
  • Client-to-edge only: HAProxy's post covers only the client-to-edge leg. HAProxy-to-backend traffic stays classical unless the backends also support post-quantum key exchange.
  • Message size: ML-KEM-768 keys are about 1,184 bytes against 32 bytes for an X25519 key share, so test latency-sensitive or MTU-constrained paths first.

Before enforcement, confirm the backend leg, since a classical backend means the traffic inside your network is still classical.

Hybrid key exchange applies to the client-to-edge leg, not the edge-to-origin leg

The diagram starts at the client, whose TLS 1.3 handshake reaches the WAF or gateway edge, where hybrid X25519MLKEM768 key exchange can be negotiated. The next hand-off is from the edge to the origin, which stays classical unless the origin also supports X25519MLKEM768. If the origin needs a different key share, the edge sends a HelloRetryRequest and one extra round trip is added. Check each leg separately, because HAProxy and most other edges cover only the client-facing connection.

Hybrid key exchange covers the client-facing leg, while the origin leg stays classical by default.

The order to migrate, and the check that closes each step

The sequence moves key exchange at the client edge first, then the origin legs, so each change is proven before the next one is enforced. The output is a WAF or gateway that negotiates hybrid key exchange with clients and origins without breaking connections, with signatures left for a later phase.

  1. Inventory TLS 1.3 support and client versions

    The network or platform team lists every WAF and API gateway in front of your applications, along with the TLS versions each one accepts and the client populations that still connect over TLS 1.2. Hybrid post-quantum key exchange in NGINX and HAProxy applies only to TLS 1.3, and clients limited to TLS 1.2 fall back to classical ECDHE or fail to connect, depending on configuration. The step is closed when you have a per-device list of TLS 1.3 support and a client-version breakdown from your own traffic logs, and you know which legacy clients need a decision before the change.

  2. Upgrade the TLS library or vendor build

    The team or vendor moves each device to a TLS library and build that offers ML-KEM. In NGINX guidance, OpenSSL older than 3.5 has no ML-KEM, so the library upgrade comes before any configuration change. Where a vendor appliance is involved, confirm with the vendor which firmware or software version carries the hybrid group, since the sources here do not establish that for every product. The step is closed when the running build reports ML-KEM support in its own version output or vendor console, recorded against the device name.

  3. Review the curve list for X25519MLKEM768

    The platform engineer reads the configured key exchange group list on each listener. A curve list in NGINX that omits X25519MLKEM768 disables the hybrid group, so an older configuration copied forward can silently keep the edge classical. The change is limited to the group list, and the step is closed when the effective configuration shows X25519MLKEM768 in the list for the listeners in scope.

  4. Enable hybrid on a test listener

    The engineer turns on hybrid key exchange on a separate test listener or staging hostname, not on production. This keeps the rest of the traffic unchanged while the behavior is observed. The check is a handshake test from a client that offers the hybrid group, such as a current browser or a command-line client built against an ML-KEM-capable library, confirming the negotiated group is X25519MLKEM768. Record the test result per device.

  5. Test origin support and HelloRetryRequest latency

    Before enforcement at the edge, the team checks whether each origin accepts X25519MLKEM768. Cloudflare's automatic key exchange prefers the hybrid group only when the origin supports it, and a HelloRetryRequest adds one round trip when the origin needs another key share. Akamai's PQC to Origin behavior is disabled by default and sends a HelloRetryRequest in the same case. Measure the added handshake time on the test path, and check the ClientHello and ServerHello sizes, since the X25519MLKEM768 client share is 1216 bytes. HAProxy warns that larger messages may exceed a single packet in MTU-constrained or latency-sensitive setups, so run the measurement there first. The step is closed when the measured handshake time and message sizes are recorded and accepted by the service owner.

  6. Enforce hybrid only after origins are upgraded

    Enforcement at the edge comes after every origin on the path is confirmed to support post-quantum key exchange. Cloudflare's Post-quantum hybrid setting returns a 525 error when the destination does not support it, and this also affects outbound fetch() calls from Workers on that zone. Enforcing early can turn a working origin into an outage. Confirm the origin upgrades on the list from the previous step, then enable enforcement on one zone or listener at a time. The step is closed when production traffic on the enforced zone shows no new 525 or handshake errors over the observation window your team sets.

  7. Leave signatures for a later phase

    Certificate signatures stay on their current algorithms in this sequence. HAProxy says signatures still use RSA or ECDSA, and CISA notes that most categories in its list have not widely adopted post-quantum signatures. Executive Order 14412 sets December 31, 2030 for key establishment and December 31, 2031 for signatures on high value assets and high impact systems, which matches doing key exchange first. The step is closed when the signature plan is written down with an owner and a review date, and the team has confirmed with each vendor what signature support is planned, since the sources here do not give a delivery date.

What the sources do not say and what to ask vendors

The sources behind this page cover key exchange on the client-facing leg of several platforms, but they leave gaps on the backend leg, on signatures and on how inspection behaves. Each card below is a question to put to the vendor before you set a migration order.

WAF behavior for unlisted vendors

CISA's product categories place web software and networking hardware in its tiers, but the text does not name web application firewalls, API gateways or load balancers. The vendors covered in the sources are only the ones with published post-quantum notes. For any other WAF or gateway, ask whether it supports hybrid key exchange on the client-facing listener, which TLS versions it requires for that, and whether the feature is on by default or needs a setting change. Get the answer in writing with a product version attached.

CISA product categories

Backend and origin PQ timelines

The sources show that the hybrid key exchange on the client leg does not extend to the backend. HAProxy states that its traffic to backends stays classical unless the backend supports post-quantum key exchange. Ask each vendor whether and when it will support post-quantum key exchange toward origins and internal services, and whether that support depends on the backend's own library version. Record the answer for each leg separately, because the two legs usually move on different schedules.

HAProxy PQC blog

Signature support on the visitor leg

Key exchange is further along than signatures. HAProxy says its signatures still use RSA or ECDSA, and Cloudflare lists visitor-leg signatures as planned through Merkle Tree Certificates, which the sources do not date. Ask each vendor which signature algorithm its certificates and TLS handshake use today, whether it can serve post-quantum certificates, and what it needs from the certificate authority to do so. A product that supports hybrid key exchange may still present a classical certificate.

Cloudflare PQC products

Managed rule inspection under hybrid handshakes

The sources describe how hybrid handshakes are negotiated, but they do not say whether managed rule inspection, TLS fingerprinting or bot detection changes when a hybrid group is used. Those functions often read the ClientHello, which grows because an ML-KEM-768 key share is about 1,184 bytes against 32 bytes for X25519. Ask the vendor whether its inspection and fingerprinting logic has been tested with hybrid ClientHello messages, and whether any rule or bot signal depends on the key share size or group list.

What can go wrong during the rollout

The most common rollout failure is a silent fallback. In NGINX, a curve list that omits X25519MLKEM768 disables the hybrid group, so the connection negotiates classical ECDHE and nothing in the handshake signals the change. The same is true for HAProxy at the client edge. Before enabling anything, confirm the curve configuration on each listener, then check the negotiated group on a live connection, not just the config file. Clients limited to TLS 1.2 cannot use the hybrid group at all. Depending on configuration, they either fall back to classical ECDHE or fail to connect, so inventory TLS 1.2-only clients in your traffic before changing any policy.

Larger handshake messages also change network behavior. HAProxy notes that ML-KEM-768 key shares are about 1,184 bytes, compared with 32 bytes for an X25519 key share, so ClientHello and ServerHello messages may exceed a single packet. Latency-sensitive paths and MTU-constrained links, including some VPN and tunnel segments, should be tested first. Expect the handshake to cost more on the wire, and measure connection setup time before and after the change rather than assuming it is negligible.

The origin leg is where enforcement can break traffic. Cloudflare's Post-quantum hybrid setting returns a 525 error when the destination does not support post-quantum key exchange, and this also affects outbound fetch() calls from Workers on that zone. Akamai's PQC to Origin behavior is disabled by default and adds a HelloRetryRequest, and so one round trip, when the origin lacks X25519MLKEM768. Confirm each origin can answer the hybrid group before turning enforcement on, and remember that HAProxy-to-backend traffic stays classical unless the backends also support post-quantum key exchange.

Common questions on WAF and API gateway migration order

Are WAFs and API gateways quantum safe today?

Not as a blanket statement. Key exchange is the part that is supported first: NGINX and HAProxy offer hybrid post-quantum key exchange with X25519MLKEM768, but only over TLS 1.3, and only when the library and the curve configuration allow it. Cloud products differ. Google Cloud enables post-quantum key exchange on frontend TLS for load balancers with no SSL policy or one without a post-quantum setting, while AWS CloudFront enables hybrid key establishment on client-to-edge connections and ALB and NLB need a listener moved to a PQ-TLS policy. Signatures and certificates still use RSA or ECDSA in the sources reviewed here. Confirm the exact product, version and setting with the vendor before describing any deployment as post-quantum.

Which version or OpenSSL build do I need for hybrid key exchange?

The sources point to two dependencies. First, TLS 1.3, because hybrid post-quantum key exchange in NGINX and HAProxy applies only to that protocol version. Second, a crypto library that includes ML-KEM. OpenSSL versions older than 3.5 have no ML-KEM, so the library upgrade comes before any configuration change. NGINX describes oqs-provider on OpenSSL 3.0.x as experimental, not recommended for production, and a stopgap until OpenSSL 3.5 or later is available. Check the exact NGINX, HAProxy or vendor build you run against the vendor's release notes, and confirm that the curve list includes X25519MLKEM768, because a curve list that omits it disables the hybrid group.

Does post-quantum migration cost extra for WAFs and API gateways?

It can, and the cost depends on the deployment model. The main drivers are whether the product is a self-hosted appliance, a software gateway on your own servers, or a managed cloud or edge service. Self-hosted products may need a library upgrade, a version upgrade or new hardware if older appliances cannot run a supported release. Managed services usually change through a vendor setting or policy, though that can still require a plan or tier change. Testing effort rises with the number of backends, because backend traffic stays classical unless those backends also support post-quantum key exchange. Ask the vendor whether the upgrade is included in your current license, which versions and tiers it covers, and what the support terms are.

What breaks when you enable post-quantum key exchange on a WAF or gateway?

Several things can break:

  • Clients limited to TLS 1.2 fall back to classical ECDHE or fail to connect, depending on configuration.
  • Larger handshake messages: ML-KEM-768 keys are about 1,184 bytes against 32 bytes for an X25519 key share, so a ClientHello or ServerHello may exceed a single packet. HAProxy recommends testing latency-sensitive or MTU-constrained setups first.
  • Upstream origins that lack post-quantum support. Cloudflare's Post-quantum hybrid setting returns a 525 error when the destination does not support it, and this also affects outbound fetch() calls from Workers on that zone. Akamai's origin behavior sends a HelloRetryRequest, adding one round trip. Upgrade origins before enforcing.
  • Backend legs that remain classical. HAProxy's guidance covers only client-to-edge traffic.

Test with clients, origins and monitoring in a staging path before enforcement.

What should I ask the WAF or API gateway vendor before migrating?

Ask for answers tied to a specific product, version and deployment mode:

  • Which post-quantum key exchange groups are supported, and whether X25519MLKEM768 is enabled by default or needs a setting.
  • Whether TLS 1.3 is required for the post-quantum path, and what happens to TLS 1.2 clients.
  • Whether the backend or origin leg supports post-quantum key exchange, and whether it is off by default.
  • What the vendor plans for signatures and certificates, and on what date, since sources reviewed here show signatures lagging key exchange.
  • Which versions are affected by a library dependency, such as OpenSSL 3.5 or later.
  • Whether any change requires a license tier, hardware replacement or a support contract.
  • Whether the vendor has published a statement on the point you are asking about. If the sources do not say, ask for it in writing.
Can our team migrate WAFs and API gateways ourselves, or do we need outside help?

Many teams can handle the configuration changes, such as enabling TLS 1.3, updating curve lists and moving a listener to a PQ-TLS policy, if they already run the product and have a test environment. Outside help is more useful when the inventory is incomplete, when the product is self-hosted and needs library or appliance upgrades, when many backends and origins must be tested, or when audit evidence is required. DeployOpen can plan, implement, test and document this work inside your own infrastructure under a fixed-scope written agreement, and can prepare evidence for compliance assessments. DeployOpen does not issue audit reports or certifications, and independent auditors do that work.

How DeployOpen helps plan and test the migration order

DeployOpen starts by mapping which WAFs and API gateways terminate client TLS, which origins they reach and which libraries and TLS versions they run. From that map we set a migration order that puts library upgrades and TLS 1.3 support first, then test each change against real client and origin paths before anything reaches production.

How we scope

  • We confirm which WAF and API gateway products, versions and deployment models are in scope before any work starts.
  • We list the client-facing listeners, origin connections and TLS versions each gateway uses to define the boundaries of the work.
  • Engagements are fixed-scope, so the written scope states which gateways, origins and clients are covered and what is excluded.

How we build

  • We check the underlying OpenSSL or TLS library version first, since OpenSSL versions older than 3.5 lack ML-KEM support.
  • We test hybrid key exchange on the client-to-edge leg in a staging environment, including TLS 1.2 fallback behavior for older clients.
  • We measure handshake size and latency on constrained links, because larger key shares can change packet behavior before any production change.

How we hand over

  • We deliver a dated migration order that records which gateways moved first, which dependencies were confirmed and which remain open.
  • We document each configuration change, including curve lists, listener policies and origin settings, so your team can reproduce them.
  • We record which backend and origin legs stay classical, so the residual exposure is visible in the handover file.

How we support

  • Ongoing support and continuous testing are available as a retainer, which covers vendor updates that change TLS defaults.
  • We can retest after vendor releases or origin upgrades to confirm that earlier fallback and error behavior has not changed.
  • Retainer scope, retest frequency and response terms are agreed in writing before the retainer begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.