Learn · Practitioner

Web Gateway PQC

7 sections

PQC deployment at the infrastructure edge — TLS termination patterns, certificate lifecycle at scale, and vendor migration paths.

For you, every role: what this means
Developer / Engineer
Build a gateway architecture and mark the PQC upgrade points, compare terminate, passthrough, re-encrypt and split TLS under PQC, and calculate handshake sizes and bandwidth.
Researcher / Academic
The handshake-size and bandwidth calculation and the four termination patterns under PQC quantify what the edge pays; the product assessment records vendor readiness.
IT Ops / DevOps
Plan the certificate migration across edge nodes with a phased rollout and assess your gateway products against PQC readiness criteria: if the gateway breaks, every application behind it inherits the outage.

Web Gateway Architecture & TLS Termination Patterns

Web gateways — , load balancers, , and CDN edge nodes — are the primary points in modern web infrastructure. They handle millions of TLS handshakes per day, making them the most impactful place to deploy .

Unlike application-level PQC (covered in TLS Basics), gateway-level deployment affects every client connection simultaneously. Upgrading a single reverse proxy to PQC hybrid can protect thousands of backend services without modifying application code.

Four TLS Termination Patterns
Terminate & Inspect

Gateway terminates TLS, inspects plaintext, forwards to backend (usually plaintext or separate TLS).

Certs: 1WAF inspection: YesGateway holds key: Yes
TLS Passthrough

Gateway forwards encrypted traffic to backend without decryption. No inspection possible.

Certs: 0WAF inspection: NoGateway holds key: No
Re-encrypt Backend

Gateway terminates client TLS, then establishes a new TLS session to backend.

Certs: 2WAF inspection: YesGateway holds key: Yes
Split TLS

Different CAs/algorithms for client-facing (public CA) and backend-facing (internal CA) TLS.

Certs: 2WAF inspection: YesGateway holds key: Yes

Try the to construct your gateway architecture and the to compare these patterns side by side.

Certificate Lifecycle at Edge Scale

CDN and load balancer operators manage certificates at enormous scale. Migrating these certificates from classical algorithms (RSA-2048, ECDSA P-256) to requires careful operational planning.

ACME Automation

Automated Certificate Management Environment (RFC 8555) is essential at scale. CAs must support PQC issuance for automated rotation to work. Let's Encrypt plans Merkle Tree Certificate support, with staging targeted for late 2026 and production readiness for 2027.

Certificate Transparency Impact

CT logs (RFC 9162) must store PQC certificates that are 5–10× larger than classical ones. This increases CT log bandwidth and storage requirements significantly.

Edge Memory Consumption

Caching larger PQC certificates and expanded session state can raise edge memory use at millions-of-connections scale. No published figure is used here, so measure it on your own traffic mix.

SAN Consolidation vs Isolation

Subject Alternative Name certificates covering multiple domains reduce the total cert count but increase blast radius if compromised. With PQC, the size trade-off shifts — fewer, larger certs may be preferable.

Certificate Pinning

Applications that pin specific certificate public keys (HPKP, mobile apps) will break during PQC migration unless pin sets are updated first. Plan pin deprecation before algorithm rotation.

Use the to model your edge migration timeline.

PQC Handshake Performance & Session Optimization

PQC algorithms produce larger keys and signatures, directly increasing TLS handshake size. At gateway scale (thousands of handshakes per second), bandwidth, CPU, memory and inspection behavior can all be affected; which one limits you depends on your gateway and traffic, so measure rather than assume.

Handshake Size Comparison (Full TLS 1.3, 2-cert chain)

Retained OpenSSL 3.6.3 captures, 9 November 2026: seven handshake-layer messages, including headers, leaf plus intermediate (root omitted); record/TCP/IP framing excluded. Modelled certificate alternatives are compared separately in the workshop.

Classical (X25519 + RSA-2048)2,233 B
Hybrid (X25519MLKEM768 + RSA-2048)4,499 B
Pure PQC (ML-KEM-768 + ML-DSA-65)16,944 B
Key Mitigations

Compare exact captured messages with certificate-only modelled variants. Compression and raw public keys count their negotiation framing; transport, connection reuse, resumption and MTC have separate boundaries.

Certificate only
Certificate Compression (RFC 8879)

Compress the Certificate body; count CompressedCertificate framing and the client offer. The selected exact samples save 181 B with RSA authentication or 175 B with ML-DSA-65, not a universal percentage.

Requires both peers to negotiate support.

Same leaf key
Raw public key alternative

Replace the chain with the same leaf SPKI, preserve CertificateVerify, and count certificate-type negotiation.

Requires negotiated support and an external identity-to-key trust binding.

Separate envelope
Session Resumption (PSK)

A returning client can authenticate with a PSK instead of a fresh Certificate and CertificateVerify. Ticket identity, binder, mode and selection framing still need accounting.

A usable prior ticket and negotiated support are required; not a first connection.

Component model
Merkle Tree Certificates

Compare authenticated certificate components and proof/trust assumptions in the MTC module, separately from this captured TLS budget.

No negotiated MTC handshake capture is supplied here.

Transport
HTTP/3 (QUIC)

Changes transport and packetization, not the cryptographic message bytes in this comparison.

Requires compatible endpoints; latency and transport overhead need separate measurement.

Connection count
Connection Coalescing

Can reuse an existing compatible connection. Change the explicit new-handshakes/sec input to compare traffic; do not discount bytes per handshake.

Origin compatibility and connection reuse must be established separately.

Try the to model your specific gateway scenario. Illustrative scenario figures, not measurements or vendor specifications: for the capacity table's handshake rates no benchmark source or test conditions are supplied. Real handshake rates, latency, memory use and TLS-inspection limits depend on the gateway model and software version, the cipher and certificate mix, session resumption and the traffic profile, so measure your own gateway and inspection path with a post-quantum handshake instead of assuming a uniform buffer size or performance.

WAF/IDS Inspection Challenges with PQC

Web Application Firewalls (WAFs) and Intrusion Detection Systems (IDS) rely on to inspect traffic for threats, data loss, and compliance violations. PQC migration creates a critical decision point: if the gateway cannot terminate PQC TLS, it loses all visibility into traffic content.

NGFW Hardware Buffer Limits

A firewall or other inspection device may limit how much of a TLS handshake it buffers or parses, and a larger post-quantum ClientHello or certificate flight can run into that limit. The limits and the failure behavior (drop, bypass or fail open) differ by product and software version and no figure is assumed here, so test your own inspection path with a post-quantum handshake before enabling post-quantum key exchange in front of it.

Passthrough Breaks Inspection

With TLS passthrough the gateway does not terminate the session, so a WAF or IDS behind it sees only encrypted traffic and cannot inspect the content. The client and the backend negotiate the key exchange and authentication end to end, so whether the session is post-quantum depends on what those two endpoints support, not on the passthrough hop. This creates an inspection blind spot, which is a separate matter from the quantum risk.

TLS Interception Boxes Must Upgrade

A device that terminates and re-establishes TLS for inspection runs two sessions, a client-facing one and a server-facing one, and each has to be migrated and checked separately. If the inspection device cannot negotiate post-quantum key exchange on a session, that session stays classical even when the other side is not, so verify each side.

Hybrid Transition Strategy

During migration, use classical TLS at the inspection point (WAF/IDS) and PQC hybrid on the client-facing edge. This preserves inspection capability while protecting the internet-facing segment. Upgrade inspection infrastructure in phase two.

CDN Edge Deployment & Origin Shielding

Content Delivery Networks deploy PQC at distributed globally. Cloudflare's edge network deploys X25519MLKEM768 hybrid key agreement in production across its global edge. AWS announced on 5 September 2025 that CloudFront supports hybrid post-quantum key establishment for client-to-edge connections across all existing TLS security policies, enabled by default with no customer configuration; it also launched a new TLS 1.3-only policy, TLS1.3_2025 (our proof-gated catalogue records the announcement). nginx supports X25519MLKEM768 through OpenSSL 3.5+. Browsers are further ahead than most gateways. Cloudflare's browser table lists post-quantum key agreement as the default for TLS in Chrome 131+, Edge 131+, Opera 116+, Firefox 132+ (desktop) and 145+ (Android), and Safari 26+; for QUIC/HTTP3 the same table gives Firefox 135+ (desktop). Cloudflare reports that the majority of human-initiated traffic to it uses post-quantum encryption (Cloudflare, 2025).

Origin Shielding

A designated edge node aggregates requests from other PoPs before forwarding to the origin server. This creates a natural PQC deployment boundary — the shield-to-origin connection can be upgraded to PQC independently of client-facing connections.

Key Distribution

CDNs must distribute TLS private keys or certificate issuance authority across their edge PoPs. With PQC, larger key material increases distribution bandwidth. Some CDNs use keyless SSL architectures where private keys never leave a central HSM.

Last Mile Problem

CDN edge PQC only protects the client-to-edge segment if the client browser also supports PQC. The Cloudflare browser table lists Chrome, Edge, Firefox and Safari 26+ as negotiating post-quantum key agreement by default, but older browsers do not, so the edge keeps a classical fallback.

Vendor-Specific PQC Migration Paths

Gateway vendor PQC readiness varies significantly. F5 BIG-IP carries ML-KEM hybrid key exchange from the 17.5.1 PQC minor, generally available across the product in 21.1 (2026); Envoy supports hybrid PQC TLS in production. Broadcom Avi 31.2.1 introduced PQC support (pure ML-KEM, hybrid KEMs and ML-DSA); Imperva reports hybrid X25519 + ML-KEM-768 TLS for client-to-Imperva connections generally available from the start of 2026; ZIA inline inspection supports hybrid PQC key exchange (Zscaler, 17 February 2026). Understanding each vendor's status and upgrade path is critical for planning — and version numbers here move quickly, so confirm against the vendor's own release notes before committing to a date.

Production PQC Support (15 vendors)
ProductVersionAlgorithmsFIPS
F5 BIG-IP17.5+X25519MLKEM768FIPS 140-2
NGINX PlusR33+X25519MLKEM768FIPS 140-3 (OpenSSL)
NGINX (Open Source)1.28+X25519MLKEM768No
HAProxy3.1+X25519MLKEM768No
Envoy Proxy1.37+X25519MLKEM768BoringCrypto
Traefik3.5+ (Go 1.24 stdlib)X25519MLKEM768No
Cloudflare EdgeCurrentX25519MLKEM768Edge platform
AWS CloudFrontAll existing security policies (AWS, 5 September 2025)X25519MLKEM768TBD
AWS ALB/NLBCurrentX25519MLKEM768FIPS 140-3 (AWS-LC)
Imperva WAFGA from early 2026X25519MLKEM768Not stated
Cloudflare Zero TrustCurrentX25519MLKEM768No
Zscaler ZTEInline inspection, announced Feb 2026Hybrid PQC key exchangeNo
Palo Alto PAN-OS12.1 OrionML-KEM, ML-DSAYes
Apache HTTP Server2.4.60+X25519MLKEM768No
Broadcom Avi / NSX ALB31.2.1 (introduced)ML-KEM (pure and hybrid), ML-DSAFIPS 140-2
Planned / Roadmap (1 vendors)
Kong API GatewayAPI gateway built on NGINX. PQC mTLS via underlying crypto library updates.

Use the to assess your specific gateway infrastructure against PQC readiness.

Post-quantum TLS at the termination point: configuration, cost and compatibility

This section examines configuration, server load, and compatibility considerations for rolling out post-quantum key exchange.

Configuration and compute impact at TLS termination

Planning a gradual, compatible transition

Beyond configuration and server load, published guidance also addresses how rollout interacts with existing infrastructure.

  • The IETF draft "Post-Quantum Cryptography Recommendations for TLS-Based Applications" describes PQC adoption as a gradual transition rather than a simple binary decision, where application providers will need to assess algorithm selection, performance impact, interoperability, and security requirements for their specific use cases.

    Source: Post-Quantum Cryptography Recommendations for TLS-Based Applications, 2026-07, Section 9 Operational Considerations

  • RFC 9954 states that hybrid-aware clients and servers should remain compatible with non-hybrid-aware endpoints and middleboxes, and a hybrid-aware server should establish a non-hybrid shared secret with a non-hybrid-aware client if willing to downgrade.

    Source: RFC 9954 — Hybrid Key Exchange in TLS 1.3, 2026-07, Section 1.4 Goals

Ready to explore interactively?

The workshop has 5 interactive steps: Topology Builder, TLS Termination Patterns, Handshake Budget Calculator, Certificate Rotation Planner, and Vendor Readiness Matrix.

Check off all sections and mark this reading done.

Try it

workshop steps that practise this lesson
  • Step 1: Topology Builder

    Build a web gateway architecture and identify PQC upgrade points.
  • Step 2: TLS Termination

    Compare terminate, passthrough, re-encrypt, and split TLS under PQC.
  • Step 3: Handshake Budget

    Calculate PQC handshake sizes and gateway bandwidth requirements.

Your comments on Web Gateway PQC(0)

Stored on this device only. A comment never counts toward your progress.

    Related resources

    Loading terms, documents and more…

    Production Tool Capabilities & Verification ChecklistEdge Network Engineers, CDN Administrators & WAF Architects

    Capabilities to require in your production tools:

    • Ingress TLS 1.3 termination with `X25519MLKEM768` enabled (default or by configuration, depending on product and crypto library, e.g., NGINX with OpenSSL 3.5+, Envoy 1.40+, HAProxy vendor builds) on NGINX, Envoy, HAProxy, Cloudflare, AWS ALB/CloudFront or Akamai.
    • Re-encryption (upstream origin TLS) supporting hybrid PQC key exchange so internal load-balancer-to-service legs are also HNDL-protected.
    • Observability metrics tracking % of connections negotiating PQC vs classical groups by client User-Agent/JA4 fingerprint.

    How to evaluate in your environment

    Verify both client-to-gateway and gateway-to-origin TLS 1.3 legs negotiate `X25519MLKEM768` under synthetic load and inspect Prometheus/access-log group counters.

    Production evidence to collect

    Gateway configuration snippet (`ssl_ecdh_curve X25519MLKEM768:X25519`), access-log `$ssl_curve` telemetry, and load-test latency p99 report.

    Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.

    Record evidence for your environment

    Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.

    Ingress TLS 1.3 termination with `X25519MLKEM768` enabled (default or by configuration, depending on product and crypto library, e.g., NGINX with OpenSSL 3.5+, Envoy 1.40+, HAProxy vendor builds) on NGINX, Envoy, HAProxy, Cloudflare, AWS ALB/CloudFront or Akamai.
    Re-encryption (upstream origin TLS) supporting hybrid PQC key exchange so internal load-balancer-to-service legs are also HNDL-protected.
    Observability metrics tracking % of connections negotiating PQC vs classical groups by client User-Agent/JA4 fingerprint.

    Evidence missing. 0 of 3 requirements have a reference or scope rationale.

    Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.