Is Your API Post-Quantum Ready? How to Test It in 5 Minutes

A TLS 1.3 API is post-quantum only if its handshake negotiates X25519MLKEM768. Here's how to check one endpoint with OpenSSL, which client libraries offer the hybrid group, and how your coding agent can test every environment with Apidog CLI.

Ashley Innocent

Ashley Innocent

3 December 2026

Is Your API Post-Quantum Ready? How to Test It in 5 Minutes

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

To test post-quantum cryptography on an API, check which key exchange group its TLS 1.3 handshake negotiates. Run openssl s_client from OpenSSL 3.5 or later against the host. If the output says Negotiated TLS1.3 group: X25519MLKEM768, the connection uses hybrid post-quantum key exchange. If it falls back to X25519, or a hybrid-only handshake fails, the endpoint is still classical.

That check takes about five minutes per host, and this guide walks through it. On December 3, 2026, Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle published a joint statement backing the US government’s call to move to NIST’s post-quantum standards “as soon as possible.” The statement is two sentences long. It names no dates and no algorithms, so the next question lands on your desk: are your endpoints ready?

Is TLS 1.3 post-quantum secure?

No, not on its own. TLS 1.3 is the protocol, and its usual key exchange, X25519, is classical elliptic-curve cryptography. A TLS 1.3 connection becomes post-quantum for confidentiality only when client and server negotiate a hybrid group such as X25519MLKEM768, defined in RFC 10024 (August 2026). The certificate signature stays classical.

So “we run TLS 1.3” is the starting line, not the finish. Whether your API uses the hybrid groups depends on both ends of every connection.

What “post-quantum ready” means for an API

An API connection has three cryptographic layers, and they move on different schedules:

Layer Classical today Post-quantum option US federal deadline (HVAs, high-impact systems)
Key exchange X25519, P-256 X25519MLKEM768 (ML-KEM-768 + X25519) December 31, 2030
Certificate signatures ECDSA, RSA ML-DSA (FIPS 204) December 31, 2031
Protocol version TLS 1.2 or 1.3 TLS 1.3 required for the hybrid groups TLS 1.3 by January 2, 2030

Key exchange comes first because of “harvest now, decrypt later”: adversaries can record traffic today and decrypt it once large quantum computers exist, as Executive Order 14412 puts it. A forged signature needs a quantum computer at handshake time, so signatures can wait a little longer.

Every host we tested on December 3, 2026 still presented an ECDSA or RSA certificate, including the ones that negotiated the hybrid group. That’s expected: today “post-quantum ready” means post-quantum key exchange.

Schema: the client to CDN edge hop uses hybrid ML-KEM key exchange, the certificate signature is still ECDSA or RSA, and the edge to origin hop is a separate TLS connection that may still be classical

There’s a trap here. Behind a CDN or load balancer, a passing result only covers the client-to-edge hop. The edge opens a second TLS connection to your origin, and your origin opens more to the services it calls. Each hop needs its own check.

Why the deadlines matter now

Here’s what the federal documents behind the joint statement say, from the primary text:

If you sell to the US government, or to anyone who does, those dates flow down to you. If you don’t, common client stacks already offer the hybrid group, so turning it on at your end is cheap.

Worried about ML-KEM itself? We covered that question in Is ML-KEM Safe After Anthropic’s Lattice Cryptography Findings? The hybrid design exists for exactly that worry: an attacker has to break both ML-KEM and X25519.

What does a post-quantum TLS handshake look like?

The client sends two key shares in its ClientHello: one for X25519MLKEM768 and a plain X25519 fallback. Per RFC 10024, the hybrid client share is 1,216 bytes (1,184 for ML-KEM, 32 for X25519) and the server’s reply is 1,120 bytes.

Sequence: the client sends X25519MLKEM768 and X25519 key shares in its ClientHello; a server that supports the hybrid group answers with a 1,120-byte X25519MLKEM768 share and both sides mix the ML-KEM and X25519 secrets; a classical-only server answers with X25519

A server that knows the hybrid group answers with its own hybrid share, and both sides derive session keys from the two secrets combined. A classical-only server picks the X25519 share and the handshake still succeeds. That’s why you can’t tell from “it connects” alone: the fallback is silent.

How to test one endpoint by hand

You need OpenSSL 3.5 or later; earlier versions don’t know the hybrid group. Then:

Ask the server what it saw, if you’re behind Cloudflare. Any Cloudflare-proxied host answers /cdn-cgi/trace with the key exchange it negotiated with your client:

curl -s https://api.example.com/cdn-cgi/trace | grep -E "tls|kex"

Force a hybrid-only handshake. This removes the silent fallback.

openssl s_client -connect api.example.com:443 \
  -servername api.example.com -groups X25519MLKEM768 -brief </dev/null

A classical-only server refuses it with tls alert handshake failure and SSL alert number 40.

Run a default handshake and read the group. Replace the host with yours.

openssl s_client -connect api.example.com:443 \
  -servername api.example.com -brief </dev/null

Against cloudflare.com, OpenSSL 4.1.0 printed:

Protocol version: TLSv1.3
Signature type: ecdsa_secp256r1_sha256
Verification: OK
Negotiated TLS1.3 group: X25519MLKEM768

A classical server prints Peer Temp Key: X25519, 253 bits instead.

Check your OpenSSL version.

openssl version

Your client stack decides half the handshake

The hybrid group only appears when both sides offer it. We pointed four clients on one Mac at https://cloudflare.com/cdn-cgi/trace on December 3, 2026:

Client TLS library kex reported
openssl s_client 4.1.0 OpenSSL 4.1.0 X25519MLKEM768
Node.js 24.15.0 https.get OpenSSL 3.5.5 X25519MLKEM768
Python 3.14.5 urllib OpenSSL 3.0.20 X25519
macOS system curl 8.7.1 LibreSSL 3.3.6 X25519

Same server, same minute, two answers: the TLS library decides, not the language. OpenSSL 3.5 changed its default key shares to offer X25519MLKEM768 and X25519, and Go 1.24 enables X25519MLKEM768 by default when Config.CurvePreferences is nil. A Python build linked against OpenSSL 3.0 never offers it.

So you need two audits: the servers you run, and the clients your services use to call out. A Python service on OpenSSL 3.0 calling a payment API stays classical even if the provider supports the hybrid group.

Let your coding agent check every endpoint with Apidog CLI

Checking every base URL in dev, staging and production after each TLS change is a loop to hand to your coding agent. It can read your environments with Apidog CLI, probe each host, and keep a test scenario that fails the moment a host drops back to classical key exchange.

Sequence: the coding agent lists environments with Apidog CLI, probes each base URL with openssl s_client, adds a handshake step per host to an Apidog test scenario, runs it with apidog run and reports hosts that did not negotiate X25519MLKEM768

Set it up once:

npm install -g apidog-cli@latest
apidog auth login --with-token <YOUR_TOKEN>
apidog skill install

Then give Claude Code, Codex or your agent of choice one prompt:

In Apidog project <PROJECT_ID>, list every environment and its base URL. For each
host, run openssl s_client with -groups X25519MLKEM768 and tell me which ones
negotiate it. Then create a test scenario called "Post-quantum handshake check"
with one GET step per host behind Cloudflare to /cdn-cgi/trace, asserting status
200, tls=TLSv1.3 and kex=X25519MLKEM768. Validate the payload against the CLI
schema, run it with a JUnit report, and list every host that fails.

The agent checks the payload shape before writing anything, then runs the scenario:

apidog environment list --project <PROJECT_ID>
apidog cli-schema get test-scenario-create
apidog test-scenario create --project <PROJECT_ID> --name "Post-quantum handshake check" --folder-id 0 --priority 1
apidog cli-schema validate test-scenario-update --file scenario.json
apidog test-scenario update <SCENARIO_ID> --project <PROJECT_ID> --file scenario.json
apidog run -t <SCENARIO_ID> --project <PROJECT_ID> -e <ENV_ID> -r cli,junit

Here’s that scenario running on a sandbox project against three public API edges. Every step asserts on the kex value the server reports, so this is the Apidog CLI’s own handshake being graded:

Apidog CLI running the Post-quantum handshake check scenario on a sandbox project: Cloudflare, the OpenAI API and the Anthropic API edges all report TLS 1.3 with kex X25519MLKEM768, 9 of 9 assertions pass

Nine of nine assertions pass: the CLI runner, on Node.js with OpenSSL 3.5, offered the hybrid group and all three edges took it. For hosts that aren’t behind Cloudflare, the agent’s openssl s_client results are your evidence. Put the same apidog run ... -r junit line in your pipeline (see Apidog CLI in CI/CD) so a load balancer change that strips the hybrid group fails the build. The apidog run reference lists every reporter and flag.

What to fix when a host fails

Most failing hosts need one of these:

  1. Upgrade the TLS terminator. Your load balancer, reverse proxy or ingress needs a TLS library that knows X25519MLKEM768, such as OpenSSL 3.5+ or Go 1.24+.
  2. Put the hybrid group in the group list. Some servers pin an explicit list of curves. Add X25519MLKEM768 ahead of X25519 (in nginx, that’s the ssl_ecdh_curve directive).
  3. Check the origin hop. If the edge passes, run the same probe from the edge’s network against the origin.
  4. Upgrade your outbound clients. Re-run the trace check from each service runtime that calls third-party APIs.

Then start a certificate inventory. Signatures are the 2031 problem, and NIST IR 8547 puts every RSA and ECDSA certificate on the deprecation list after 2030. For related testing, see our guides to SSL certificate verification and testing APIs with mTLS client certificates.

Wrapping up

To test post-quantum cryptography on an API, ask one question per hop: did the handshake negotiate X25519MLKEM768? Check edges by hand, then put the check in a test scenario so it can’t regress.

Once one agent runs this audit for you, a team can split it up: one task per service or environment, each picked up by a coding agent on a teammate’s machine. Sharkly is a board for that, where you assign tasks to coding agents like Claude Code or Codex running on your own computers and review what they ship before it merges. It’s free to start.

FAQ

What is post-quantum TLS? It’s TLS 1.3 with a key exchange that resists quantum attacks. Today that means a hybrid group such as X25519MLKEM768, which combines NIST’s ML-KEM (FIPS 203) with classical X25519, so an attacker has to break both.

Does my API need a new certificate to be post-quantum ready? Not for key exchange. Hybrid key exchange works with your existing ECDSA or RSA certificate. Post-quantum signatures are a separate migration, with a 2031 deadline for federal high-value systems.

Is X25519MLKEM768 slower? The handshake carries about 2.3 KB of key-share data (1,216 bytes out, 1,120 back) instead of 64 bytes for X25519 alone. It’s a one-time cost per connection, and connection reuse spreads it across many requests.

Will turning on the hybrid group break old clients? Clients that don’t know the group send only classical key shares, and the server picks one of those. Test with -groups X25519 after the change to confirm the classical path still works.

Explore more

OpenAI Models in Grok Build: How to Use GPT-6.2 Astra and Sol

OpenAI Models in Grok Build: How to Use GPT-6.2 Astra and Sol

OpenAI and SpaceX agreed on December 2, 2026 to keep OpenAI models in Grok Build, the tool formerly called Cursor. Here's which GPT-6.2 models you can pick, which plans include them, what they cost and how to switch in the editor and the terminal.

3 December 2026

Git MCP Server: Setup and Use With Coding Agents

Git MCP Server: Setup and Use With Coding Agents

Set up the official Git MCP server (mcp-server-git) in Claude Code, Codex or any MCP client, see all 14 tools it exposes, follow a real agent commit session, and lock it to one repository.

3 December 2026

How to Access GPT-6.2 Cyber: API, Codex and Amazon Bedrock

How to Access GPT-6.2 Cyber: API, Codex and Amazon Bedrock

GPT-6.2 Cyber is in early access through the OpenAI API, Codex and Amazon Bedrock, all gated by Daybreak Red. Here's how each route works and how to apply for OpenAI's $25M AWS cyber credits.

2 December 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

Is Your API Post-Quantum Ready? How to Test It in 5 Minutes