---
title: 'What Web Developers Need to Do About <em>Post-Quantum Cryptography</em>'
tags:
  - security
  - devops
  - backend
  - networking
  - nodejs
published: true
date: 2026-12-06 18:40:00
description: 'Post-quantum cryptography is back in the spotlight after the December 2026 NSA advisory and announcements from AI companies. This post first explains, in plain terms, what the problem is and what is being debated right now. Then, for web developers who build servers with Node.js and run Linux servers behind Cloudflare or AWS, it separates what everyone should do from what depends on your setup, backed by measurements.'
art:
  undraw: secure-server
---

When I connect one by one to the hosts that a securities firm's web screen uses (I will call it Securities A), the hosts that serve HTML, scripts, and images agree on encryption keys with a method prepared for quantum computers. But the API hosts that, judging by their names, handle trading, authentication, and notifications connect with the old method. The static assets anyone can download are protected by the new method, while the hosts that seem to carry trading data are left out.

Post-quantum cryptography (PQC) is getting attention again after a U.S. government advisory and announcements from AI companies in December. This post is written for web developers who build servers with Node.js and run Linux servers behind Cloudflare or AWS (CloudFront, ALB). It first explains in plain terms what the problem is and what is being debated right now, and then splits the work into what everyone should do and what depends on your setup, alongside values I measured on Korean and global sites and AWS API endpoints, and results I reproduced locally and in containers.

> Measurements were taken on December 6, 2026, on an Apple M5 running macOS 27.2.1. For the sites I used `s_client` from OpenSSL 4.0.3. I connected to each host once with three settings, and this post shows the results with OpenSSL's default settings (the results for the other two settings are in the experiment repository). All of these are TLS connections over TCP; I did not measure HTTP/3 (QUIC), which browsers can use. Measurements came from a single location, so CDNs may return different results from edges in other regions. For local reproduction I used nginx 1.29.7 (built with OpenSSL 3.6.1), Node.js 24.20.0 (OpenSSL 3.5.7), Chrome 160, and the macOS default curl 8.7.1 (LibreSSL 3.3.6). Linux distributions and Node.js runtimes were checked by pulling each official image (arm64) in Docker 29.4.0. Platform defaults were checked against public documentation and release notes as of December 6, 2026.
>
> The measurement scripts and results are in [blog-experiments `0076901` pqc-key-exchange](https://github.com/yceffort/blog-experiments/tree/007690176185d10a048a7e8b863a935711c9e6bb/pqc-key-exchange). The raw output for financial service hosts contains host names and certificate subjects, so I published only the results with names, IPs, and certificate subjects removed.

## What the problem is

When an HTTPS connection starts, the browser and the server first agree on a key that only the two of them know, and everything exchanged after that is encrypted with this key. This process is called **key exchange**. The key exchange that has been widely used until now is an elliptic curve method such as X25519. It relies on a math problem that today's computers practically cannot solve, but that a sufficiently large quantum computer could.

Such a quantum computer does not exist yet. The reason to change now anyway is that attackers do not need to wait until one exists. The NSA press release says so as well.

> Adversaries are already collecting encrypted information to decrypt once the capabilities become available.

In other words, attackers are already collecting encrypted information and plan to decrypt it once they have the capability. Ciphertext exchanged today cannot be read right away, but it can be stored and decrypted after quantum computers arrive. This attack is often called "harvest now, decrypt later." That is why key exchange has to be changed before quantum computers arrive. Certificates and signatures, which confirm that a server is genuine, are used only at the moment a connection is established. Even if signatures can be forged later, the contents of connections that have already ended are not revealed, so they are less urgent than key exchange. [IR 8547](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf), published by NIST in October 2026, also gives the two separate transition timelines for the same reason. According to that document, U.S. Executive Order 14412 and OMB Memorandum M-26-15 require the government's most sensitive systems to adopt post-quantum cryptography for key establishment by December 31, 2030, and for signatures by December 31, 2031. In Korea, the National Intelligence Service published a draft "Post-Quantum Cryptography Transition Guidebook" on November 16, 2026, and was [reported](https://byline.network/2026/11/16-746/) to have moved the transition target for critical national systems from 2035 up to 2031.

The solution is already a standard: **hybrid key exchange** (X25519MLKEM768), which builds the key using both the existing X25519 and ML-KEM, a new method believed to be hard to break even with quantum computers. As long as either one is secure, the key is secure. Modern browsers already offer this method by default, so whether it is actually used depends on server-side settings. That is also why Securities A's static assets and APIs gave different results.

## What is being debated right now

Several announcements came out within a week starting at the end of November.

| Date        | Announcement                                                                                                                                                                                  | Content                                                                                                                                                                                                                                                                                  |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| November 30 | Anthropic's [four papers on lattice cryptography](https://github.com/anthropics/formal-math/tree/44431b0b294e191241f480adc840c811fda1f44e/lattices)                                           | Presented, in theory, a quantum algorithm that solves the math problem ML-KEM relies on (module lattices) faster than known methods. The repository states that the results are asymptotic and not practical for ML-KEM and ML-DSA parameter sets                                        |
| December 2  | NSA [advisory](https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/)  | Advised moving to post-quantum cryptography immediately, citing that AI companies had reported "recent discoveries that impact the security of some cryptographic systems in current use"                                                                                                |
| December 2  | [Joint government statement](https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities) from the NSA, CISA, and the White House ONCD | Assessed that the discoveries reported by AI companies affect some cryptography in current use but do not pose an immediate and widespread threat. It still called for a quick transition                                                                                                |
| December 5  | [Joint statement](https://www.anthropic.com/news/joint-statement-cryptography) from Anthropic and OpenAI                                                                                      | Said that while testing unreleased models, each company separately found mathematical weaknesses in some of the cryptography that protects the internet. NIST's post-quantum standards rely on different math and are unaffected, and the weaknesses are unrelated to the lattice papers |

There are two points of debate. The first is whether ML-KEM, the new standard, is being shaken. Because the lattice papers deal with module lattices, the foundation of ML-KEM, several analyses of what they mean were published, but as the paper repository explains, this is not an attack usable at real key sizes. The second is what weaknesses the AI found. The joint statement only says the weaknesses are "in the underlying mathematics and have always existed," and does not disclose which algorithms are affected or how they were found. The information needed to judge how large the risk is has not been released yet.

Still, I think what web developers need to do is the same regardless of this debate. With hybrid key exchange, the key is secure as long as one of the two methods is. If the cryptography we use today has a weakness, ML-KEM protects the key, and if ML-KEM has a weakness we do not know about yet, X25519 does. The NSA advisory also says to follow RFC 10024 when a hybrid key exchange is needed. The standard and the browsers are ready, so what remains is finding the parts of your service where hybrid is missing and filling them in.

## Terms used in this post

From here on are the terms you need to read the settings and measurement results. I go through them in the order things happen when an HTTPS connection starts.

When a browser connects to an `https://` address, it performs a **TLS handshake** before exchanging any content. This is the first exchange of messages, in which the client and server decide which cryptographic methods to use and create a key that only the two of them know. The client first sends a **ClientHello**, and the server replies with a **ServerHello**. In TLS 1.3, key exchange is finished with these two messages, and in the same response the server goes on to send its certificate and signature to prove it is the genuine server. The client verifies them and immediately sends the encrypted HTTP request, so without a retry, the request can go out after just one round trip.

Key exchange uses math that lets both sides arrive at the same secret value while exchanging only values that are safe to make public, and from this secret value they derive the **symmetric keys** that encrypt the rest of the handshake and the HTTP content. Each individual method used for key exchange is called a **group** (named group) in TLS.

| Term                                  | Meaning                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| X25519                                | The key exchange group browsers used by default before hybrid. It creates the secret value with Diffie-Hellman (ECDH) on the elliptic curve Curve25519                                                                                                                                                                                                                                                                                             |
| P-256                                 | A key exchange group using an elliptic curve defined by the U.S. NIST. Depending on the tool, it is also written as secp256r1 or prime256v1                                                                                                                                                                                                                                                                                                        |
| Classical                             | Existing methods not prepared for quantum computers, such as X25519 and P-256. They rely on math problems that a sufficiently large quantum computer could solve                                                                                                                                                                                                                                                                                   |
| ML-KEM                                | The post-quantum key exchange method NIST standardized as FIPS 203 in 2024. It is a key encapsulation mechanism (KEM): the side that receives the public key uses it to create both a secret value and a ciphertext and sends back only the ciphertext, and the side holding the private key decrypts it to get the same secret value. There are three parameter sets, ML-KEM-512, 768, and 1024, and 768 is the one with medium security strength |
| X25519MLKEM768                        | A **hybrid** group that performs X25519 and ML-KEM-768 together and concatenates the two secret values to build the key. As long as either one is secure, the key is secure                                                                                                                                                                                                                                                                        |
| Supported groups (`supported_groups`) | A list in the ClientHello saying "I can use these groups"                                                                                                                                                                                                                                                                                                                                                                                          |
| Key share (`key_share`)               | Key material computed in advance and sent in the ClientHello. If the server picks one of these, the exchange finishes in one round trip                                                                                                                                                                                                                                                                                                            |
| HelloRetryRequest                     | A response the server sends when the group it chose is in the supported groups list but has no key share, asking the client to send a key share for that group again. It adds one round trip                                                                                                                                                                                                                                                       |
| Certificates and signatures           | The means of confirming that the server you connected to is genuine. A certificate carries the signature of a certificate authority, and during the handshake the server creates a signature with the certificate's private key to prove it owns that certificate. This is separate from key exchange                                                                                                                                              |
| OpenSSL                               | The library nginx and Node.js use to handle TLS. ML-KEM was added in 3.5                                                                                                                                                                                                                                                                                                                                                                           |

To sum up, modern browsers write "I can use X25519MLKEM768 and X25519" in the ClientHello and send key shares for both groups together. If the server picks X25519MLKEM768, the key exchange is post-quantum, and if it picks X25519 or P-256, it is classical. In this post, "connected with hybrid" means the server picked X25519MLKEM768.

## The standard and the browsers are already ready

X25519MLKEM768 became a standard as [RFC 10024](https://www.rfc-editor.org/rfc/rfc10024) in August 2026, and its group number in TLS is 0x11EC (4588). RFC 10024 defines "hybrid" as using multiple algorithms at once so that security holds as long as any one of them is secure. The cost is size. An X25519 key share is 32 bytes, but with X25519MLKEM768 the client's key share is 1216 bytes (1184 bytes of ML-KEM plus 32 bytes of X25519) and the server's key share is 1120 bytes.

Browsers already offer this method by default. Chrome uses X25519MLKEM768 by default from desktop 131 ([Google Security Blog](https://security.googleblog.com/2024/09/a-new-path-for-kyber-on-web.html)) and from Android 133 (based on a Chromium [commit](https://chromium.googlesource.com/chromium/src/+/ed1a8b05afa0cd16e9aa7e7c9b64041f8575f463) and release tags). Chrome on iOS uses WebKit and therefore follows the OS, and Apple [stated](https://support.apple.com/en-us/122756) that from iOS 26 and macOS 26, URLSession and Network framework offer hybrid by default. Firefox does so from desktop 132 ([bug 1919097](https://bugzilla.mozilla.org/show_bug.cgi?id=1919097)) and Android 145 ([bug 1989986](https://bugzilla.mozilla.org/show_bug.cgi?id=1989986)).

All of these versions came out before the RFC. Browsers implemented the same method before the standard was finalized, so there is no need to update browsers just because the RFC was published. Browsers older than these cannot use hybrid and usually connect with a classical method such as X25519.

In a September 2026 [post](https://blog.cloudflare.com/post-quantum-visibility/), Cloudflare said that about 70% of browser traffic coming into Cloudflare uses hybrid ML-KEM on the connection between visitors and Cloudflare. Clients are this ready, so what remains is on the server side.

That said, you do not need to check everything. In my measurements, hosts with a CDN or platform in front, such as Vercel, CloudFront, and Cloudflare, connected with hybrid without any extra settings, and the places where hybrid was missing were those that handle TLS themselves, such as self-run servers and old runtimes. So below I first cover three things everyone should do, and then separately cover what to look at only if it applies to your setup and what to look at when something goes wrong.

## What everyone should do

These are three checks to make regardless of how your service is set up.

### Find the important hosts first

> **What to check**
>
> The list of hosts for APIs and WebSockets that carry trading, payment, authentication, or personal information, and for the main external APIs your servers call. Record login and the main user flows in the Network tab of the browser developer tools, and match them against your servers' outbound call logs. Fill in missing hosts by extracting addresses from your build output
>
> ```sh
> # (보완용) 빌드 결과물(.next/static, dist)과 .env 파일에서
> # https://, wss://로 시작하는 주소를 찾아 중복 없이 출력한다
> # 없는 경로나 파일은 건너뛴다(2>/dev/null). .env 파일 이름은 프로젝트에 맞게 바꾼다
> # -r 하위 폴더까지, -h 파일 이름 생략, -o 일치한 부분만, -E 확장 정규식
> grep -rhoE '(https|wss)://[A-Za-z0-9.-]+' \
>   .next/static dist .env .env.local .env.production 2>/dev/null | sort -u
> ```
>
> **What to do**
>
> Prioritize the hosts where you would lose the most if their traffic were decrypted later

If you only check the host that opened the page, Securities A looks like it supports hybrid. But if you extract host names from the script bundles the web screen downloads and connect to them the same way, the result is different. I guessed each host's purpose from its name.

| Purpose (guessed from name)       | Front (response header) | Negotiated     |
| --------------------------------- | ----------------------- | -------------- |
| Web screen, static assets, images | CloudFront              | X25519MLKEM768 |
| Information lookup API            | CloudFront              | X25519MLKEM768 |
| Trading API                       | nginx                   | P-256          |
| Authentication API                | nginx                   | P-256          |
| Notifications (SSE)               | nginx                   | P-256          |
| Real-time quotes (WebSocket)      | Not identified          | X25519         |

The hosts behind CloudFront connected with hybrid. According to its public documentation, CloudFront uses hybrid by default for connections with browsers. The hosts whose response headers showed nginx asked for a P-256 key share again when I connected with OpenSSL's defaults (which send hybrid and X25519 key shares and list P-256 only in the supported groups), and refused the connection when I filled the supported groups with only X25519MLKEM768 and X25519. In terms of how much protection each needs, the order is backwards. Static assets and public quotes are data anyone can get, so little is revealed even if they are decrypted later, but if the trading and authentication APIs are used as their names suggest, account, order, and session information will pass through them. If you judge that you "have it covered" by looking only at the parts a CDN turned on by default, the data that most needs protection is left out.

### Check whether those hosts connect with hybrid

> **What to check**
>
> Whether `Protocol version: TLSv1.3` and `Negotiated TLS1.3 group: X25519MLKEM768` appear when you connect to each host with `s_client` from OpenSSL 3.5 or later
>
> ```sh
> # TLS 1.3으로만 접속해(-tls1_3) 결과를 짧게 출력하고(-brief), 프로토콜과 키 교환 줄만 남긴다
> # </dev/null은 접속 직후 바로 끝내기 위한 것이다
> # 하이브리드면 "Negotiated TLS1.3 group: X25519MLKEM768"이 찍히고,
> # 고전 방식이면 "Peer Temp Key: X25519, 253 bits"처럼 찍힌다
> # 키 교환 방식만 보는 명령이라 인증서가 유효한지는 확인하지 않는다.
> # 아무 줄도 나오지 않으면 접속 자체가 실패한 것이니 grep 없이 다시 실행해 오류를 본다
> openssl s_client -connect api.example.com:443 -servername api.example.com \
>   -tls1_3 -brief </dev/null 2>&1 | grep -E 'Protocol|group|Temp Key'
> ```
>
> **What to do**
>
> For hosts that are not hybrid, find out where TLS is handled (a CDN, a load balancer, or a server you run) and read the matching part of "What to do depending on your setup" below

The default `openssl` and `curl` on macOS are LibreSSL 3.3.6 and cannot test hybrid, so use OpenSSL 3.5 or later, such as the one from Homebrew. When the connection is hybrid, the last line shows `Negotiated TLS1.3 group`, as below.

```text
Protocol version: TLSv1.3
Ciphersuite: TLS_AES_128_GCM_SHA256
Peer certificate: CN=yceffort.kr
Signature type: rsa_pss_rsae_sha256
Negotiated TLS1.3 group: X25519MLKEM768
```

The reason for adding `-tls1_3` is to avoid mistaking a successful fallback to TLS 1.2 for support. In my measurements, when I offered only hybrid without this option, hosts that only connect over TLS 1.2 and the AWS Lambda API endpoint fell back to TLS 1.2 and connected successfully. Hybrid is defined only in TLS 1.3, so servers that only connect over TLS 1.2 need to upgrade the protocol before changing any settings.

Here are the results of connecting to 27 hosts on Korean and global sites with OpenSSL's default settings (the other Securities A hosts are in the previous table).

| Host                                             | Front (response header) | Negotiated      |
| ------------------------------------------------ | ----------------------- | --------------- |
| `yceffort.kr`                                    | Vercel                  | X25519MLKEM768  |
| `www.naver.com`, `m.naver.com`, `news.naver.com` | nfront                  | X25519MLKEM768  |
| `s.pstatic.net`, `ssl.pstatic.net`               | Not identified          | X25519MLKEM768  |
| `www.coupang.com`                                | Akamai                  | X25519MLKEM768  |
| `www.google.com`, `www.googletagmanager.com`     | Google                  | X25519MLKEM768  |
| `www.cloudflare.com`                             | Cloudflare              | X25519MLKEM768  |
| `github.com`                                     | Not identified          | X25519          |
| Securities A web screen                          | CloudFront              | X25519MLKEM768  |
| Securities B, C, D                               | Not identified          | X25519(TLS 1.3) |
| Securities E                                     | Not identified          | X25519(TLS 1.2) |
| Banks A, B                                       | Not identified          | P-256(TLS 1.2)  |
| Fintech service A                                | nginx                   | P-256(TLS 1.2)  |

Judging by their response headers or certificates, every host that connected with hybrid had a CDN or large platform in front. `pstatic.net` does not show its front in the response headers, but its certificate subject is Naver. None of the financial service hosts whose front was not visible in the response headers or showed nginx negotiated hybrid, and four of them still connected only over TLS 1.2.

### Check Node.js's OpenSSL

> **What to check**
>
> Whether the OpenSSL used by Node.js in your API servers, batch jobs, and Lambda functions is 3.5 or later
>
> ```sh
> # 이 Node.js가 쓰는 OpenSSL 버전을 출력한다(-p는 식을 실행하고 결과를 출력하는 옵션)
> node -p process.versions.openssl
> # 3.5.9  → 3.5 이상: 하이브리드를 제시한다
> # 3.0.19 → 3.5 미만: 고전 방식으로만 연결된다
> ```
>
> **What to do**
>
> If it is below 3.5, upgrade to an official build of Node.js 22.20 or 24.5 and later, or to the Lambda `nodejs:22` or `nodejs:24` runtime. After upgrading, call your main external APIs once each with your actual code from the image you will deploy

When a Node.js server calls S3 or KMS through the AWS SDK, or calls a payment provider's API, the server is the client. Whether it offers hybrid then depends on the OpenSSL that Node.js uses, because Node.js's `tls.DEFAULT_ECDH_CURVE` is `auto` and, with default settings, uses OpenSSL's default list as is. Official builds bundle OpenSSL 3.5.2 from [22.20.0](https://nodejs.org/en/blog/release/v22.20.0) and OpenSSL 3.5.1 from [24.5.0](https://nodejs.org/en/blog/release/v24.5.0). If your code has a `tls.connect` or `https.Agent` that sets `ecdhCurve` or pins `maxVersion` to TLS 1.2, that setting takes precedence.

However, judging only by the Node.js major version can be wrong, because official images, Lambda images, and distribution packages use different OpenSSL versions. From each image I connected to a local nginx (no group settings) and compared the value Node.js reported with the value left in the nginx log.

| Runtime                           | Node.js | OpenSSL | nginx log                                       | `getEphemeralKeyInfo()`                      |
| --------------------------------- | ------- | ------- | ----------------------------------------------- | -------------------------------------------- |
| `node:20-slim`                    | 20.20.2 | 3.0.19  | X25519                                          | `{type: 'ECDH', name: 'X25519', size: 253}`  |
| `node:22-slim`                    | 22.23.5 | 3.5.9   | X25519MLKEM768                                  | `{}`                                         |
| `node:24-slim`                    | 24.23.0 | 3.5.9   | X25519MLKEM768                                  | `{type: 'TLSGroup', name: 'X25519MLKEM768'}` |
| Lambda `nodejs:20`                | 20.20.2 | 3.2.6   | X25519                                          | `{type: 'ECDH', name: 'X25519', size: 253}`  |
| Lambda `nodejs:22`                | 22.23.5 | 3.5.9   | X25519MLKEM768                                  | `{}`                                         |
| Lambda `nodejs:24`                | 24.23.0 | 3.5.9   | X25519MLKEM768                                  | `{type: 'TLSGroup', name: 'X25519MLKEM768'}` |
| Debian 13 `apt install nodejs`    | 20.19.2 | 3.5.10  | X25519MLKEM768                                  | `{}`                                         |
| Ubuntu 24.04 `apt install nodejs` | 18.19.1 | 3.0.13  | X25519 (confirmed by connecting to yceffort.kr) | `{type: 'ECDH', name: 'X25519', size: 253}`  |

Even with the same Node.js 20, the official image (OpenSSL 3.0.19) and the Lambda image (OpenSSL 3.2.6) are classical, while the Debian 13 package is hybrid. Distribution packages link against the system's `libssl.so.3`, so they follow the distribution's OpenSSL version. The value to check is the OpenSSL version, not the Node.js version. The table is based on images pulled on December 6, 2026, so for functions and containers already deployed, check directly in the running environment. In environments without a shell, such as Lambda, log the value of `process.versions.openssl` from your code.

Most of the AWS endpoints I checked were ready. When I connected the same way to API endpoints in the AWS Seoul region, KMS, Secrets Manager, ACM, S3, DynamoDB, STS, SQS, and Cognito connected with X25519MLKEM768, and only the Lambda API endpoint connected with X25519. `api.cloudflare.com` was hybrid as well. For servers using default TLS settings, bringing Node.js's OpenSSL to 3.5 or later is enough to make most AWS SDK calls hybrid without changing any code. Note that I only checked each region's default endpoints, so if you use bucket-specific S3 addresses or VPC endpoints, check those addresses separately.

When you upgrade the runtime, the first message of outbound calls (the ClientHello) grows past 1.5KB. Most things keep working, but if your traffic passes through a corporate egress proxy or an old firewall, the connection can be cut because of this size. So after upgrading, call your main external APIs with your actual code, and if the connection is cut, see "If outbound calls are cut, suspect middleboxes" below.

## What to do depending on your setup

A request that starts in the browser goes through Cloudflare, CloudFront, or an ALB before it reaches your server. A separate TLS connection is established for each of these segments, so the key exchange method is also decided separately for each segment, and what you need to do depends on where TLS is handled. Read only the parts that apply to your service.

### If you use Vercel, Cloudflare, or CloudFront

> **What to check**
>
> The segment from the browser to the edge is hybrid by default, so there is little to do there. Only check how the segment from the edge to your origin server is connected
>
> ```sh
> # 오리진 서버가 TLS 1.3을 지원하는지 확인한다(origin.example.com은 오리진 주소)
> openssl s_client -connect origin.example.com:443 -servername origin.example.com \
>   -tls1_3 -brief </dev/null 2>&1 | grep -E 'Protocol|group|Temp Key'
> ```
>
> **What to do**
>
> With Cloudflare, set the SSL/TLS encryption mode to Full or higher and make your origin support TLS 1.3. With CloudFront, be aware that the origin segment cannot be made hybrid

| Platform   | Browser → edge                                                                                                                                                                                    | Edge → origin                                                                                                                                                                                                                               |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Cloudflare | All TLS 1.3 connections ([docs](https://developers.cloudflare.com/ssl/post-quantum-cryptography/))                                                                                                | Tries hybrid automatically since July 2026 ([docs](https://developers.cloudflare.com/ssl/origin-configuration/automatic-key-exchange/))                                                                                                     |
| CloudFront | On by default for all security policies since September 2025, TLS 1.3 only ([announcement](https://aws.amazon.com/about-aws/whats-new/2025/09/amazon-cloudfront-TLS-policy-post-quantum-support)) | The documentation lists only prime256v1, secp384r1, and X25519 as curves for origin connections ([docs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-ciphers-cloudfront-to-origin.html)) |
| Vercel     | Default since November 7, 2025 ([changelog](https://vercel.com/changelog/post-quantum-crypto))                                                                                                    | Not checked in this post                                                                                                                                                                                                                    |

Cloudflare's automatic application to the origin segment has conditions. The SSL/TLS encryption mode must be Full, Full (strict), or Strict, the origin must support TLS 1.3, and origins connected through Cloudflare Tunnel are outside this setting. Cloudflare scans origins periodically and applies the results, so it can take several weeks after you turn it on, and in the meantime it is safer to confirm the actual group in your origin's logs. The 'Post-quantum hybrid' requirement, which enforces hybrid, cuts connections to destinations that do not support it with a 525 error, and this includes Workers `fetch()` calls running in that zone, so check your origins and outbound call targets before turning it on.

The list of curves CloudFront's documentation gives for origin connections does not include a hybrid group. So for Securities A's information lookup API too, the hybrid part is most likely only from the browser to CloudFront. If you use CloudFront, you should know that the origin segment cannot be changed through settings.

### If you use ALB or NLB

> **What to check**
>
> Whether the `SslPolicy` on your ALB HTTPS listeners and NLB TLS listeners contains `PQ` (excluding policies with `CNSA2`)
>
> ```sh
> # 로드 밸런서의 리스너마다 포트, 프로토콜, 보안 정책 이름을 표로 출력한다
> aws elbv2 describe-listeners --load-balancer-arn <로드 밸런서 ARN> \
>   --query 'Listeners[].[Port,Protocol,SslPolicy]' --output table
> ```
>
> **What to do**
>
> Assign a PQ policy that supports X25519MLKEM768 (for example, `ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09`)

ALB and NLB have different default policies depending on how they are created. Created in the console, the default is a PQ policy (`ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09`), but created outside the console without specifying a policy, such as with the CLI, CloudFormation, or CDK, the default is `ELBSecurityPolicy-2016-08` ([docs](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/describe-ssl-policies.html)). With CDK, turning on the `usePostQuantumTlsPolicy` flag makes a PQ policy the default.[^1] What matters is the value actually applied, not how it was created, so check the listener's `SslPolicy` and change it to a PQ policy. Changing the policy also changes the TLS versions and cipher suites it allows, so compare it with your current policy first and make sure older clients are not cut off. Even though their names contain PQ, policies with CNSA2 use only ML-KEM-1024 and secp384r1 without hybrid, so ordinary web services should not pick them.

On an NLB, this policy applies only to TLS listeners. A TCP listener passes TLS through to the target without terminating it, so in that case the target server's settings decide the negotiation result. If the target server is nginx, see the nginx section below.

The segment from the load balancer to the target server is a separate connection. If an ALB target group is HTTP, or the target group behind an NLB TLS listener is TCP, this segment is not encrypted; if it is HTTPS or TLS, a separate TLS connection is established. You cannot choose the policy for this segment directly; it is determined by the listener policies, and when the listeners use a PQ policy, `ELBSecurityPolicy-TLS13-1-0-PQ-2025-09` is used. The documentation only goes as far as the policy name, so it is safer to confirm the actual group in the target server's logs.

### If you terminate TLS with nginx yourself

> **What to check**
>
> Whether the OpenSSL used by nginx is 3.5 or later, and whether the final configuration has no group settings that block hybrid
>
> ```sh
> # nginx를 빌드할 때 쓴 OpenSSL 버전. 실행할 때 쓰는 버전이 다르면 (running with ...)이 함께 찍힌다
> nginx -V 2>&1 | grep -i openssl
> # include한 파일까지 합친 최종 설정을 출력하고(-T), 그룹을 정하는 두 지시어를 찾는다
> # 둘 다 나오지 않으면 기본값(auto)이다. 설정에 오류가 있으면 오류가 먼저 출력된다
> sudo nginx -T | grep -n -E 'ssl_ecdh_curve|ssl_conf_command'
> ```
>
> **What to do**
>
> If OpenSSL is below 3.5, upgrade the distribution or use an nginx built with OpenSSL 3.5 or later. Leave `ssl_ecdh_curve` as `auto`, or if you must write the list yourself, put hybrid on its own before a `/`, as in `X25519MLKEM768/X25519:prime256v1:secp384r1`

Whether nginx on a Linux server you run can use hybrid depends on the OpenSSL version nginx links against. ML-KEM was added in OpenSSL 3.5, and 3.5 is a long-term support release supported until April 2030. Distribution nginx packages link dynamically against the system OpenSSL, so the distribution's OpenSSL version is nginx's limit. These are the versions I found in the official Docker images.

| Distribution, image  | OpenSSL                     | Hybrid |
| -------------------- | --------------------------- | ------ |
| Ubuntu 22.04         | 3.0.2                       | No     |
| Ubuntu 24.04         | 3.0.13                      | No     |
| Ubuntu 26.04         | 3.5.5                       | Yes    |
| Debian 12            | 3.0.22                      | No     |
| Debian 13            | 3.5.9 (3.5.10 after update) | Yes    |
| Amazon Linux 2023    | 3.5.8                       | Yes    |
| `nginx:stable` image | 3.5.9 (nginx 1.30.8)        | Yes    |
| `nginx:alpine` image | 3.5.9 (nginx 1.31.10)       | Yes    |

The distribution nginx on Ubuntu 24.04 LTS cannot use hybrid no matter how you change its settings. You need to upgrade the distribution or use a separate nginx built with OpenSSL 3.5 or later (such as the official Docker image). If you put Cloudflare or CloudFront in front, the segment from the browser to the edge becomes hybrid, but the segment from the edge to this server still follows this server's OpenSSL. On the `nginx:stable` image, `nginx -V` printed two versions, as in `built with OpenSSL 3.5.7 9 Jun 2026 (running with OpenSSL 3.5.9 29 Sep 2026)`, and the one actually in use is the `running with` version. After updating the library, you need a restart, not a `reload`, for the running process to use the new library.

With OpenSSL 3.5 or later, the simplest option is not to write `ssl_ecdh_curve` at all. The default `auto` uses [OpenSSL's built-in list](https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_ecdh_curve), and from OpenSSL 3.5 that list puts hybrid in the first tuple.[^2]

```c
#define TLS_DEFAULT_GROUP_LIST \
    "?*X25519MLKEM768 / ?*X25519:?secp256r1 / ?X448:?secp384r1:?secp521r1 / ?ffdhe2048:?ffdhe3072"
```

If you write the list yourself, you need to know the difference between `/` and `:`. `/` separates tuples in order of preference, and groups joined with `:` belong to the same tuple. The server goes through the tuples from the front, and within the same tuple it prefers a group for which the client sent a key share. So if you join everything with colons, hybrid lands in the same tuple as X25519 even if you write X25519MLKEM768 first. These are the results I confirmed on a local nginx.

| Setting                            | Client sending hybrid and X25519 key shares | Client sending only an X25519 key share |
| ---------------------------------- | ------------------------------------------- | --------------------------------------- |
| No setting (`auto`)                | X25519MLKEM768                              | X25519MLKEM768 (HelloRetryRequest)      |
| `X25519MLKEM768:X25519:prime256v1` | X25519MLKEM768                              | X25519                                  |
| `X25519MLKEM768/X25519:prime256v1` | X25519MLKEM768                              | X25519MLKEM768 (HelloRetryRequest)      |

For clients that send both key shares, like browsers, all three are hybrid, but the colon list picks the classical method for clients that send only one key share. A setting written to prefer hybrid ends up choosing hybrid less often than the default. When you write the list yourself, separate the tuples with `/`, and keep the curve used by your certificate (`secp384r1` for a P-384 ECDSA certificate) and your existing classical curves at the end. If you remove the classical curves, clients that do not know hybrid, such as the macOS default curl, cannot connect. The NSA advisory says not to leave "non-PQC defaults" after upgrading, but that is a standard for national security systems where the clients can be controlled. For web services open to anyone, I think it is safer to keep classical curves alongside for now.

Be careful about inheritance when you delete the setting to go back to the default. Even if you delete `ssl_ecdh_curve` from a `server` block, it inherits the value if one exists in the `http` block or an included file.[^3] Also, if group settings are defined with `ssl_conf_command Groups ...;`, nginx applies it later, so that value is used regardless of `ssl_ecdh_curve`.[^4] That is why the `nginx -T` command in the check box looks for both directives. After changing the settings, check the syntax with `nginx -t`, test both TLS 1.2 and 1.3 connections with your real certificate, and then roll out to some servers first.

#### Allowing only P-256 adds one more round trip to every connection

A server that allows only P-256, as with `ssl_ecdh_curve prime256v1`, is slower today regardless of quantum resistance. Apart from meaningless values inserted to test extension compatibility (GREASE), the ClientHello from Chrome 160 and Node.js 24 contains key shares only for X25519MLKEM768 and X25519, and P-256 appears only in the supported groups. When there is no key share for the group the server chose, the server must send a HelloRetryRequest under [RFC 8446 section 4.1.1](https://www.rfc-editor.org/rfc/rfc8446#section-4.1.1), so a server that accepts only P-256 sends a retry request on every new connection from these clients. Locally, a client offering only X25519 could not connect to such a server at all. When I connected to Securities A's trading API and recorded the handshake, the retry was clearly visible (OpenSSL also labels a HelloRetryRequest as `ServerHello`).

```text
ClientHello, Length=1552    # X25519MLKEM768, X25519 키 공유
ServerHello, Length=84      # HelloRetryRequest: P-256 키 공유를 다시 보내 달라는 요청
ClientHello, Length=365     # P-256 키 공유로 다시 시작
ServerHello, Length=151     # P-256으로 진행
```

I measured how long this round trip takes in the opposite direction on yceffort.kr. When Node.js sends a hybrid key share first, the handshake finishes without a retry, and when it sends only an X25519 key share, Vercel asks for hybrid and sends a retry request. These are the medians of 20 connections per condition, alternating between the two.

| Client setting                     | DNS lookup and TCP connection | TLS handshake | Negotiated     |
| ---------------------------------- | ----------------------------- | ------------- | -------------- |
| Hybrid key share first             | 11.2ms                        | 18.2ms        | X25519MLKEM768 |
| X25519 key share only (with retry) | 10.0ms                        | 33.7ms        | X25519MLKEM768 |

In this measurement, the TLS handshake took about 15ms longer under the retry condition. The first column also includes the DNS lookup, so it is not a pure round-trip time, but the added time is about the size of one extra round trip. On mobile networks with long round-trip times, the added time grows accordingly. For such a server, simply changing `ssl_ecdh_curve` to `auto` or to a hybrid-first list separated with `/` makes the key exchange hybrid and also removes the retry with browsers.

## If something goes wrong or you want to check more

### If outbound calls are cut, suspect middleboxes

> **What to check**
>
> Whether the proxies and firewalls on the path from your server to external APIs pass the larger first message without cutting it. Connect from the actual server and see whether the handshake completes
>
> ```sh
> # 이 서버에서 외부 API로 TLS 접속을 시도한다.
> # OpenSSL 3.5 이상은 기본값으로 하이브리드 키 공유를 넣은 큰 ClientHello를 보낸다
> # 장비가 데이터를 조용히 버리면 응답을 기다리며 멈추므로 timeout으로 10초 제한을 둔다
> timeout 10 openssl s_client -connect api.example.com:443 \
>   -servername api.example.com -brief </dev/null
> ```
>
> **What to do**
>
> If it fails, do not work around it by reconnecting with the classical method; fix the device

Switching to hybrid key exchange makes the client's first message (the ClientHello) larger. The hybrid key share alone is 1216 bytes, so measured as the size actually carried over TCP, including the TLS record header, the macOS default curl's ClientHello was 319 bytes, while ClientHellos with a hybrid key share were 1586 bytes from Node.js 24 and 1949 bytes from Chrome 160.

This size does not fit in a single network packet. On Ethernet, a TCP packet usually carries at most 1460 bytes of data (the MSS), so a hybrid ClientHello can arrive split across two packets. The problem is that some proxies, firewalls, and load balancers were built on the assumption that the first message always arrives in one packet. Such devices read only the first packet to find the host name being connected to (SNI), and when the message is cut off, they cannot handle it and drop the connection. Nothing is wrong with the cryptography, yet the connection fails because of the message size.

This has actually happened. In a May 2024 [post](https://blog.google/chromium/advancing-our-amazing-bet-on-asymmetric/), the Chrome team said that splitting the ClientHello across two packets increased the median desktop TLS handshake latency by 4%, and that the rollout exposed this bug hidden in several TLS middlebox products. The products confirmed to have the problem are listed on [tldr.fail](https://tldr.fail), including Vercel, fixed in 2023, as well as ZScaler, Cisco, Envoy (fixed through configuration), Ingress Nginx (in TLS passthrough mode), Palo Alto, Broadcom ProxySG, and Apache Traffic Server.

I reproduced this situation locally. It imitates the behavior of a buggy device rather than using a real one. Between the client and the server I placed a segment that forwards data in 1460-byte chunks at 20ms intervals, and behind it a Node.js proxy. This proxy does not actually read the SNI; it only checks whether the first data it receives contains the entire ClientHello record, and drops the connection if not.

```js
client.once('data', (first) => {
  const recordLen = first.readUInt16BE(3) // TLS 레코드 헤더의 길이 필드
  if (first.length < 5 + recordLen) {
    // ClientHello 레코드가 첫 읽기에 다 들어오지 않으면 끊는다
    client.resetAndDestroy()
    return
  }
  // 실제 장비라면 여기서 SNI를 읽는다. 이 재현에서는 그대로 백엔드로 전달한다
})
```

```text
[proxy] first read 308B holds whole ClientHello -> forward
[proxy] first read 1460B < ClientHello record 1548B -> cannot find SNI, reset
```

The ClientHello record offering only X25519 was 308 bytes, arrived in one read, and passed. The record with a hybrid key share was 1548 bytes, but only 1460 bytes arrived in the first read, so the connection was dropped (the `cannot find SNI` in the log is wording I put in the proxy to describe this situation). Reconnecting with only X25519 at this point would succeed, but an attacker could then downgrade you to the classical method just by deliberately cutting the first connection, so do not work around it; fix the device. If you built SNI routing or a TLS passthrough proxy yourself with Node.js's `net` module, it is also worth checking that it does not look only at the first `data` event like the code above.

If your traffic goes out through a corporate HTTP proxy, add the `-proxy` option and test the same path.

```sh
# HTTP 프록시(예: 사내 송신 프록시)를 거쳐 나가는 경우
timeout 10 openssl s_client -proxy proxy.internal:3128 \
  -connect api.example.com:443 -servername api.example.com -brief </dev/null
```

Passing once with `s_client` is not a guarantee. If the split packets reach the device almost simultaneously and are read at once, the connection passes even with the bug. tldr.fail also explains that network conditions can hide the bug, and provides a Python script for testing servers. `s_client` does not reproduce your application's proxy settings or trusted CAs either, so do the final check with your actual code. If your company has a proxy that terminates and inspects TLS, the group you see here is for the connection to the proxy, and the connection from the proxy to the external API follows the proxy's settings.

### Log how connections were negotiated

> **What to check**
>
> Whether any of your current logs record the key exchange group, and where handshake failures are recorded. For nginx, check whether `log_format` includes `$ssl_curve`, and for ALB, check whether connection logs are turned on
>
> ```sh
> # nginx 최종 설정의 로그 형식에 $ssl_curve(협상된 그룹)가 들어 있는지 찾는다
> sudo nginx -T | grep -n '\$ssl_curve'
> # ALB 연결 로그가 켜져 있는지 확인한다. Value가 "true"면 켜져 있다
> aws elbv2 describe-load-balancer-attributes --load-balancer-arn <로드 밸런서 ARN> \
>   --query "Attributes[?Key=='connection_logs.s3.enabled']"
> ```
>
> **What to do**
>
> Turn on the fields that record the group for each segment and watch the hybrid ratio, but look at handshake failures and timeouts separately

The last step of the NSA advisory is to detect weak cryptography remaining in real traffic. For a web service, that means logging which group each segment connected with and watching the ratio.

| Segment                | How to check                                                                                                                                                                                                                                                       |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| nginx                  | `$ssl_curve`. Hybrid group names are logged correctly after the fix in [1.27.5](https://nginx.org/en/CHANGES). I confirmed that nginx 1.29.7 logs `X25519MLKEM768`                                                                                                 |
| Cloudflare             | The `ClientTLSKeyExchangeGroup` field in the Logpush `http_requests` dataset ([changelog](https://developers.cloudflare.com/changelog/post/2026-08-20-pqc-key-exchange-visibility/))                                                                               |
| CloudFront             | Adding the `CloudFront-Viewer-TLS-Details` header to the origin request policy passes it to the origin in the `keyExchange` field ([docs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-cloudfront-headers.html)). Not in standard logs |
| ALB                    | The `tls_keyexchange` field in connection logs (off by default) ([docs](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-connection-logs.html)). Not in access logs                                                               |
| Node.js outbound calls | `tlsSocket.getEphemeralKeyInfo().name` (Node.js 24.19.0, 26.5.0 and later)                                                                                                                                                                                         |

If you use CloudFront, the simplest approach is to read the `CloudFront-Viewer-TLS-Details` header in your origin Node.js server and attach it to your existing request logs. For outbound calls from a Node.js server, call `getEphemeralKeyInfo()` on the connected socket; the ability to return the name of a hybrid group landed in [24.19.0 and 26.5.0](https://github.com/nodejs/node/commit/d3ed6c153c7561cb9eaf1593dfe41f33584a7a6a). As the runtime table above shows, Node.js 22 returns an empty object even when it connects with hybrid, so do not conclude that a connection was classical just because Node.js 22 returned an empty object.

```js
import tls from 'node:tls'

const socket = tls.connect({
  host: 'yceffort.kr',
  port: 443,
  servername: 'yceffort.kr',
})
socket.once('secureConnect', () => {
  // Node.js 24.19.0 이상: { type: 'TLSGroup', name: 'X25519MLKEM768' }, Node.js 22: {}
  console.log(socket.getEphemeralKeyInfo())
  socket.end()
})
```

When reading the ratio, check the denominator. nginx logs, Cloudflare logs, and the CloudFront header are recorded per request, and only successful requests are recorded. Connections cut during the handshake never appear in these HTTP logs, so middlebox problems should be looked at through handshake failure counts and timeouts rather than the hybrid ratio. ALB connection logs, by contrast, are recorded per connection, and when a connection fails, a value starting with `Failed:` is recorded in `tls_verify_status`, so you can calculate the failure rate as well.

## Summary

| Group                   | Task                           | How to check                                               | Watch out for                                                                                               |
| ----------------------- | ------------------------------ | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Everyone                | Find the important hosts       | Network tab, servers' outbound call logs, build output     | Checking only the page host misses trading and authentication APIs                                          |
|                         | Check for hybrid connections   | `s_client -tls1_3` from OpenSSL 3.5 or later               | The macOS default `openssl` and `curl` cannot test it. Do not read a fallback to TLS 1.2 as support         |
|                         | Check Node.js's OpenSSL        | Whether `node -p process.versions.openssl` is 3.5 or later | Look at the OpenSSL version, not the Node.js version. Test real outbound calls after upgrading              |
| Depending on your setup | Vercel, Cloudflare, CloudFront | The origin segment                                         | The browser side is hybrid by default. CloudFront's origin segment cannot be changed                        |
|                         | ALB, NLB                       | The listener's `SslPolicy`                                 | Created outside the console without a policy, the 2016 policy is the default. CNSA2 policies are not hybrid |
|                         | Self-run nginx                 | `nginx -V`, `nginx -T`                                     | Distribution nginx on Ubuntu 24.04 and Debian 12 cannot use it. Colon lists choose hybrid less often        |
| When needed             | Middlebox diagnosis            | `s_client` with `timeout`                                  | Do not work around failures by retrying with the classical method                                           |
|                         | Logging negotiated groups      | `$ssl_curve` and the Cloudflare, CloudFront, ALB fields    | HTTP logs record only successful requests                                                                   |

I left certificates out of this round of work. All 27 hosts I measured used certificates with RSA or ECDSA keys, and there are no post-quantum certificates browsers accept yet. In a February 2026 [security blog post](https://blog.google/security/cultivating-a-robust-and-efficient-quantum-safe-https/), Chrome announced a plan to introduce a new certificate structure called Merkle Tree Certificates in stages in 2027, so prepare for certificate changes separately according to that schedule.

In my measurements, every host that connected with hybrid had a CDN or large platform in front, and the results matched the default behavior each platform has published. Not a single financial service host without such a front negotiated hybrid. Most of what web developers need to do comes down to the OpenSSL version and one line of configuration, so it can be done now. But whether that one line has actually taken effect cannot be known by checking only the page host; you need to check every host that carries important data.

[^1]: [aws-cdk `60c35278` `packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md` L2409-L2417](https://github.com/aws/aws-cdk/blob/60c35278a1add0709f0d59033547549f878f5764/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md#L2409-L2417)

[^2]: [OpenSSL `openssl-3.5.0` `ssl/t1_lib.c` L204-L205](https://github.com/openssl/openssl/blob/openssl-3.5.0/ssl/t1_lib.c#L204-L205)

[^3]: [nginx `release-1.29.7` `src/http/modules/ngx_http_ssl_module.c` L724-L725](https://github.com/nginx/nginx/blob/release-1.29.7/src/http/modules/ngx_http_ssl_module.c#L724-L725)

[^4]: nginx applies `ssl_ecdh_curve` in [nginx `release-1.29.7` `src/http/modules/ngx_http_ssl_module.c` L904-L906](https://github.com/nginx/nginx/blob/release-1.29.7/src/http/modules/ngx_http_ssl_module.c#L904-L906) and `ssl_conf_command` in [the same file, L961-L963](https://github.com/nginx/nginx/blob/release-1.29.7/src/http/modules/ngx_http_ssl_module.c#L961-L963)
