Skip to content

Post-Quantum in Production, Chapter 3, 7 min read, updated 2026-12-06

The 60-minute triage

On this page

At a glance

  • What you get: in one hour, four answers for every public endpoint you know. Does it speak TLS 1.3? Does it support post-quantum key exchange? Does it prefer it? Does its certificate chain contain an ECDSA P-256 CA key that Chrome will distrust on March 15, 2027? Then the same for SSH and mail.
  • Why it matters: you walk into the planning meeting with numbers instead of guesses.
  • Who should do it: one engineer, one hour. Three short scripts in templates/scripts/ do the work, using only OpenSSL 3.5+, OpenSSH and dig.

This chapter is deliberately practical. It is the hour you spend before the inventory (Chapter 4), so that you start planning with facts.

In plain words: "Supports" means the server can use the new lock if the visitor insists. "Prefers" means the server asks for the new lock even when the visitor first offers the old one. Browsers offer the new lock anyway, so they get it either way. Older clients and tools often do not, and only a server that prefers will steer them to it.

3.1 What you need: a modern OpenSSL, a list of hosts, and permission

  • A Linux or macOS shell with OpenSSL 3.5 or newer (openssl version). If your workstation has an older one, run the scripts in a container: docker run --rm -it -v "$PWD:/w" -w /w debian:13 sh, then apt-get update && apt-get install -y openssl openssh-client dnsutils. Debian 13 ships OpenSSL 3.5. Tested (2026-12-06, OpenSSL 3.5.10)
  • A list of hostnames. Start with what you know: the main website, the API, the login host, the status page, the mail domain, the VPN gateway, and the SSH bastion (the jump host your team logs in through). Ten names is fine for the first hour.
  • Permission. Scan only systems you own or are authorized to test. These scripts perform a few normal handshakes per host, like a browser would. They do not attack anything.

3.2 Minutes 0–20: check your TLS endpoints

Save your hosts in hosts.txt, one per line (host or host:port), and run:

sh templates/scripts/pq-triage.sh hosts.txt > tls-triage.csv

For each host, the script runs three handshakes and one certificate fetch. (A handshake is the short greeting where client and server agree on how to encrypt.) The table explains each output column; the pq_preferred and p256_ca_in_chain columns are the ones that most often surprise people.

Column How it is measured
pq_supported Offer only X25519MLKEM768. Did the server accept it?
pq_preferred Offer an X25519 key share first and list X25519MLKEM768 second. Did the server send a HelloRetryRequest and end up on X25519MLKEM768?
browser_gets Offer key shares for both, as browsers do. What was negotiated?
p256_ca_in_chain Fetch the chain the server sends and list every CA certificate (not the leaf) with an ECDSA P-256 key.

A HelloRetryRequest is the server saying "please try again with this other option". A key share is the client's opening move for one specific key-exchange method.

The five probesThe five client offers used in the lab and what each tells you; the classical-first probe distinguishes preferred from supported.sharekey share sentlistedlisted as supported onlyteal: PQ, blue: classicalProbeWhat the client offersWhat it tells youpq-onlyX25519MLKEM768Is the hybrid supported at all?The handshake fails if it is offpq-firstX25519MLKEM768X25519A modern client leading with PQA classical server retries to X25519browserX25519MLKEM768X25519What browsers getChrome, Firefox and Safari send bothclassical-firstX25519X25519MLKEM768Preferred or only supported?HelloRetryRequest, then hybrid:preferred. Plain X25519: supported only.the key probeclassical-onlyX25519Do old clients still connect?They should, on every fixGroup lists as passed to openssl s_client -groups in the Fix DB lab (tools/fixlab/run.mjs)
The five client offers used in the Fix DB lab and what each reveals. The triage script uses three of them (pq-only, classical-first and browser); classical-first is the one that separates preferred from supported.

Here is what it printed for four well-known sites on December 6, 2026: Scanned

host,port,tls13,pq_supported,pq_preferred,browser_gets,p256_ca_in_chain
letsencrypt.org,443,yes,yes,yes,X25519MLKEM768,"none"
github.com,443,yes,no,no,X25519,"Sectigo Public Server Authentication CA DV E36"
wikipedia.org,443,yes,no,no,X25519,"none"
microsoft.com,443,yes,yes,yes,X25519MLKEM768,"none"

Even at this scale the pattern is clear. Some large sites are fully post-quantum on key exchange. Others are still classical. And at least one has the certificate problem from Chapter 8. Judgment The difference is less about how sophisticated an organization is. It is more about which defaults, which settings and which CA hierarchy it happens to use.

What each result tells you to do

  • pq_preferred = yes: good. Move on.
  • pq_supported = yes, pq_preferred = no: an OpenSSL server with a group list missing the /, a Java server, or a provider that only supports. Fix it in Chapter 6 or 7.
  • pq_supported = no: old runtime, old curve list, or a CDN/load balancer without post-quantum. See Chapter 6 or 7.
  • p256_ca_in_chain not none: put it on the certificate list for Chapter 8. This one has a deadline.
  • tls13 = no: fix this first. Post-quantum key exchange in TLS needs TLS 1.3.

Pitfall: the probe sees the front door only. If a CDN or load balancer terminates TLS, you measured the CDN, not your server. A green result at the edge says nothing about the connection from the edge to your origin. Chapter 7 shows how to check that leg.

Pitfall: a failed probe is not "classical". Timeouts, firewalls and SNI mistakes also produce empty results. If a row says none everywhere, check connectivity before you file it as a finding.

3.3 Minutes 20–35: check SSH from the machines that connect

sh templates/scripts/ssh-kex-check.sh ssh-hosts.txt > ssh-triage.csv

The script opens an SSH connection, stops before authentication, and records the key exchange that was negotiated.

In SSH, the client's preference decides: the chosen algorithm is the first one on the client's list that the server also supports. Sourced (RFC 4253 §7.1) So run this from the machines that actually connect: your CI runners, your bastion, your config-management server. A modern laptop will get post-quantum where an old CI image will not.

Tip: Running the check from your own laptop can make things look better than they are. Run it from the oldest machine that really connects, such as a CI runner image.

From a Debian 13 container (OpenSSH 10.0p2), both github.com and gitlab.com negotiated mlkem768x25519-sha256 on December 6, 2026. Scanned

What the result means:

  • mlkem768x25519-sha256 or sntrup761x25519-sha512: post-quantum hybrid. Good.
  • curve25519-sha256 or ecdh-sha2-*: classical. Either the client or the server is old, or someone set KexAlgorithms. Chapter 9 has the fix and a lab showing which side to change.

3.4 Minutes 35–45: check your mail servers

sh templates/scripts/mx-pq-check.sh example.com > mx-triage.csv

This looks up the domain's MX records (the DNS entries that say which servers receive its mail). It then runs the same three probes over SMTP STARTTLS on port 25. STARTTLS is how a mail connection upgrades from plain text to encrypted.

Tip: Many home and cloud networks block outbound port 25. If every row times out, run the script from a host that is allowed to send mail.

For gmail.com, all five MX hosts preferred X25519MLKEM768 on December 6, 2026. Scanned For contrast, Microsoft 365's inbound host for microsoft.com negotiated classical secp384r1 and asked for it with a HelloRetryRequest even when offered a hybrid key share. Scanned Mail between two providers is only as protected as the weaker side. Chapter 10 covers what you control and what you can only ask for.

3.5 Minutes 45–60: write down four numbers

Put the three CSV files into the inventory sheet (templates/inventory.csv, Chapter 4). Then write a half-page note with four numbers:

  1. Public TLS endpoints checked, and how many prefer post-quantum.
  2. Chains with a P-256 CA key (deadline March 15, 2027).
  3. SSH paths checked, and how many negotiate a post-quantum hybrid.
  4. MX hosts checked, and how many support post-quantum.

That note is the first slide of the board briefing in Chapter 18. It is also your baseline. When you re-run the same scripts after a month, you can show progress with the same method.

3.6 A one-off check goes stale, so repeat it

The scripts are a snapshot. Defaults change. Someone pastes an old hardening guide. A CDN setting is toggled. A certificate is renewed from a different intermediate. Chapter 17 turns these checks into monitoring, using the same probes in CI or a scheduler.

If you would rather not maintain scripts, PQ Scan runs the same supported-versus-preferred probes and the P-256 chain check as a hosted scan with alerts. Any tool that separates "supported" from "preferred" and reads the full chain will do.

Key takeaways

  • One hour and three scripts give you a real baseline for TLS, SSH and mail.
  • "Supported" is not "preferred". Only a server that prefers post-quantum steers non-browser clients to it.
  • A P-256 CA key in your chain has a hard deadline: March 15, 2027.
  • For SSH, test from the machines that actually connect, because the client's preference decides.
  • A probe at the CDN edge says nothing about the leg to your origin, and a failed probe is not a "classical" result.

Changelog

  • 2026-12-06: First edition. Scripts tested in Debian 13 (OpenSSL 3.5.10, OpenSSH 10.0p2).

Sources