Skip to main content

Post-Quantum Migration Checklist for Linux Servers (2027)

The post-quantum deadline moved to 2027. On 2026-12-05, Anthropic and OpenAI said they are moving their own systems to post-quantum cryptography by “the first half of 2027” (joint statement). Three days earlier, the NSA advised an immediate transition, and Cloudflare wrote that it is “accelerating that plan to complete the work next year, 2027” (Cloudflare).

This post-quantum migration checklist is for the people who now own that ticket on Linux servers. Each step has a command you can run today and says what the stock distribution can and cannot do. Everything below was checked on 2026-12-06 unless a row says otherwise.

The order: key exchange now, certificates later

Post-quantum migration has two halves, and they are not ready at the same time.

  1. Key exchange protects the session keys. An attacker who records your traffic today can decrypt it once a large quantum computer exists (“harvest now, decrypt later”). The fix is the hybrid group X25519MLKEM768 in TLS 1.3 and mlkem768x25519-sha256 in SSH. Both are standardized, both are in current browsers and clients, and both work today.
  2. Authentication (certificates, host keys, signatures) only has to resist an attacker at the moment of the handshake. Recorded traffic does not help break it later. Public TLS certificates with post-quantum signatures do not exist yet (see step 6).

So the checklist starts with key exchange everywhere, and treats certificates as something to prepare for.

Step 1: inventory your public TLS endpoints

Test from outside first. The GetPageSpeed SSL test reports whether a server negotiates X25519MLKEM768, next to the rest of the TLS audit.

For a list of hosts, use a client that has ML-KEM. On RHEL 9 and 10 the system openssl is new enough. On older systems install openssl35, our OpenSSL 3.5 build. It is a separate binary and leaves the system openssl alone:

sudo dnf install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf install openssl35

On Debian and Ubuntu, set up the APT repository and run sudo apt-get install openssl35. Free to install; commercial production use requires a subscription.

Then probe every endpoint with a client that offers only the hybrid group:

for h in www.example.com api.example.com mail.example.com; do
  printf '%s: ' "$h"
  openssl35 s_client -connect "$h:443" -servername "$h" \
      -groups X25519MLKEM768 </dev/null 2>&1 \
    | grep -o 'Negotiated TLS1.3 group: .*' || echo 'handshake failed'
done

Negotiated TLS1.3 group: X25519MLKEM768 is a pass. <NULL> or a failed handshake means that endpoint is still classical only.

For scripts and health checks, curl-latest (curl 8.23 on OpenSSL 3.5, EL7 to EL10) does the same:

sudo dnf install curl-latest
curl-latest -sv -o /dev/null --curves X25519MLKEM768 https://www.example.com/ 2>&1 \
  | grep 'SSL connection'
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519MLKEM768 / id-ecPublicKey

Step 2: find out why each failing endpoint fails

A web server can only offer ML-KEM if its TLS library has it. ML-KEM arrived in OpenSSL 3.5. Check what your server process loads:

ldd "$(command -v nginx)" | grep -E 'libssl|libcrypto'
nginx -V 2>&1 | grep 'built with'

Then check for a configuration line that removes the hybrid group. Hardening guides copied before 2025 often pin a classical list:

sudo nginx -T 2>/dev/null | grep ssl_ecdh_curve

No output, or a line that names X25519MLKEM768, is fine. Gixy flags a curve list that leaves the hybrid out.

What the stock distribution gives you is measured, per distro, in our post-quantum TLS support table for RHEL, Ubuntu and Debian. The short version:

  • Works with the stock packages: RHEL 10.1+, Debian 13, Ubuntu 26.04.
  • One setting away: RHEL 9. OpenSSL 3.5 is there, but the DEFAULT crypto policy leaves ML-KEM out. Run sudo update-crypto-policies --set DEFAULT:PQ, or name the groups in the server config.
  • Impossible with stock packages: CentOS 7, RHEL 8, Ubuntu 22.04, Ubuntu 24.04, Debian 12. The system OpenSSL is 1.0.2, 1.1.1 or 3.0, and no configuration adds ML-KEM to it.

Step 3: fix web servers on older distributions

The last group is where most production servers still are. A distribution upgrade fixes it eventually. A package change fixes it this week.

NGINX

NGINX from the GetPageSpeed repository links openssl35, an OpenSSL 3.5 LTS build installed under its own library names. It sits beside the system OpenSSL, replaces nothing, and negotiates X25519MLKEM768 with no configuration on CentOS 7, RHEL 8, Ubuntu 22.04, Ubuntu 24.04 and Debian 12.

sudo dnf install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf upgrade nginx      # replaces the distro NGINX; use "install" on a host without one
sudo systemctl restart nginx
Free to install; commercial production use requires a subscription. Without one, a small license notice appears on HTML pages after 30 days.

On Debian and Ubuntu, after the APT repository setup, run sudo apt-get install nginx. Free to install; commercial production use requires a subscription. Without one, a small license notice appears on HTML pages after 30 days.

Restart rather than reload: the master process loads the TLS library once. Configuration details, the ssl_ecdh_curve syntax and the Cloudflare origin case are in the NGINX post-quantum cryptography guide.

Apache httpd and HAProxy

As of 2026-12-06, the stock packages look like this:

Distribution Apache httpd HAProxy Their OpenSSL Post-quantum key exchange
CentOS 7 2.4.6 1.5.18 1.0.2 No
RHEL 8 2.4.37 1.8.27 1.1.1 No
RHEL 9 2.4.62 2.8.14 3.5 After DEFAULT:PQ, or with the groups named in the config
Ubuntu 22.04 2.4.52 2.4.30 3.0 No
Ubuntu 24.04 2.4.58 2.8.30 3.0 No
Debian 12 2.4.68 2.6.12 3.0 No

We tested the RHEL 9 row on AlmaLinux 9.9 with a hybrid-only client. Under the DEFAULT crypto policy, both stock servers failed the handshake. After update-crypto-policies --set DEFAULT:PQ, both negotiated X25519MLKEM768. Under DEFAULT, both also negotiated it once the groups were named in their own config:

SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1
bind :443 ssl crt /etc/haproxy/site.pem curves X25519MLKEM768:X25519:P-256

An explicit list replaces OpenSSL’s default, so keep X25519MLKEM768 first in it.

We do not ship Apache or HAProxy builds on OpenSSL 3.5 today. Where they run on an older distribution, the practical path is to terminate TLS in front of them: NGINX from our repository as a reverse proxy on the same host or a separate edge, with Apache or HAProxy behind it on localhost. The visitor-facing handshake is then post-quantum, and the backend stays as it is.

Step 4: SSH

SSH has had a hybrid post-quantum key exchange for longer than TLS. OpenSSH 9.0 made sntrup761x25519-sha512 the default, and OpenSSH 10.0 switched the default to mlkem768x25519-sha256 (release notes). OpenSSH 10.1 prints a warning when a connection uses a non-post-quantum key exchange (release notes).

See what a connection actually negotiates:

ssh -v user@server exit 2>&1 | grep 'kex: algorithm'

And what the server offers, in order:

sudo sshd -T | grep -i ^kexalgorithms

Stock OpenSSH servers, measured in clean containers on 2026-12-06 (Ubuntu 26.04 and Debian 13 versions from their package archives):

Distribution OpenSSH Post-quantum key exchange by default
CentOS 7 7.4p1 No
RHEL 8 8.0p1 No
RHEL 9.9 9.9p1 No: compiled in, but the DEFAULT crypto policy leaves it out. DEFAULT:PQ puts mlkem768x25519-sha256 first
RHEL 10.3 9.9p1 Yes, mlkem768x25519-sha256 first
Ubuntu 22.04 8.9p1 No: sntrup761x25519 is offered, but after the classical methods, so two 22.04 hosts settle on curve25519-sha256
Ubuntu 24.04 9.6p1 Yes, sntrup761x25519 (not ML-KEM)
Ubuntu 26.04 10.2p1 Yes, mlkem768x25519-sha256
Debian 12 9.2p1 Yes, sntrup761x25519 (not ML-KEM)
Debian 13 10.0p1 Yes, mlkem768x25519-sha256

sntrup761x25519 is a real hybrid, so it already protects recorded sessions. It is not a NIST algorithm, so a CNSA 2.0 or FIPS-driven audit will still ask for ML-KEM. On RHEL 9 the same crypto-policy command from step 2 covers SSH and TLS together:

sudo update-crypto-policies --set DEFAULT:PQ
sudo systemctl restart sshd

The negotiated method is the first one in the client’s list that the server also supports, so check both ends. A jump host on Ubuntu 22.04 keeps every session it opens classical.

Seeing “connection is not using a post-quantum key exchange algorithm” from a newer ssh client? The SSH post-quantum warning guide covers the fix per distribution, a jump-host setup for RHEL 8 and CentOS 7, and how to silence the warning per host safely.

Step 5: internal TLS, mail and VPN

Internal links carry the data that is worth harvesting: database replication, backups, mail between servers. Each needs OpenSSL 3.5 under it, plus its own setting:

  • PostgreSQL 18: ssl_groups defaults to X25519:prime256v1 (docs), so name the hybrid, for example ssl_groups = 'X25519MLKEM768:X25519:prime256v1'. Before version 18 the setting was ssl_ecdh_curve and took one value.
  • MySQL: post-quantum groups need a server built with OpenSSL 3.5 or later and apply to TLS 1.3 only; the variable is tls_kex (docs).
  • Postfix: the default already uses OpenSSL’s hybrid group when the other side asks for it (postconf(5), tls_eecdh_auto_curves).
  • VPN: strongSwan added ML-KEM in 6.0 (strongSwan). OpenVPN takes its default group from OpenSSL, which is X25519MLKEM768 on OpenSSL 3.5 and later (OpenVPN). WireGuard has no post-quantum key exchange of its own; its optional pre-shared key is the hook that add-ons such as Rosenpass use.

Probe any STARTTLS service the same way as step 1:

openssl35 s_client -starttls postgres -connect db.internal:5432 \
    -groups X25519MLKEM768 </dev/null 2>&1 | grep 'Negotiated TLS1.3 group'
openssl35 s_client -starttls smtp -connect mx.example.com:25 \
    -groups X25519MLKEM768 </dev/null 2>&1 | grep 'Negotiated TLS1.3 group'

On the distributions without OpenSSL 3.5, these services follow the same rule as the web servers: the stock build cannot do it.

Step 6: prepare for post-quantum certificates

As of 2026-12-06, public CAs do not issue post-quantum TLS certificates. The first ones will not be ML-DSA X.509 certificates of the kind you buy today, but Merkle Tree Certificates (MTCs), which browsers and CAs are building specifically for post-quantum signatures:

  • Let’s Encrypt is “aiming to make MTCs generally available in early February 2027”, and they “will use the ML-DSA algorithm” (Let’s Encrypt, 2026-12-03).
  • Cloudflare plans to issue its first MTCs in early 2027 (Cloudflare).

Nothing in your certificate setup has to change today. Two things are worth doing now: know which ACME client each server uses (MTCs need client support), and keep the TLS stack current enough that a 2027 upgrade is a package update, not a rebuild. Your RSA or ECDSA certificate stays valid alongside a post-quantum key exchange.

Step 7: roll it out across the fleet

A checklist done on one server is a pilot. The work is making every server look the same and keeping it that way.

  • One repository, one command. With the GetPageSpeed repository configured, the change on every RHEL, CentOS 7, Debian or Ubuntu host is the same dnf upgrade nginx (or apt-get install nginx) and a restart. Configuration management only has to ship one repository file.
  • Re-test after every config change. Run the step 1 loop from monitoring, not once. One copied ssl_ecdh_curve line drops the hybrid group without a warning.
  • Scan configs continuously. GetPageSpeed Amplify runs scheduled gixy scans across every host, including the curve-list check.

For many servers, Fleet subscriptions cover 10 to 100 servers at a per-server rate; for a handful, see the repository plans.

The deadlines, from the primary sources

If an auditor asks “by when”, these are the dates that exist, as published:

  • NSA CNSA 2.0 (National Security Systems), from the CNSA 2.0 FAQ, October 2026, v2.2: “by January 1, 2027, CNSA 2.0 algorithms will be required in all new acquisitions for NSS”; “By December 31, 2030, all NSS equipment and services that cannot support CNSA 2.0 must be phased out”; “By December 31, 2031, CNSA 2.0 algorithms are mandated for use”. The algorithms are ML-KEM-1024, ML-DSA-87, AES-256 and SHA-384/512. The December 2026 advisory adds no new dates; it asks for “Enabling PQC settings where available”.
  • US federal systems (NIST IR 8547, October 2026): RSA, ECDSA, EdDSA and classical Diffie-Hellman are deprecated after 2030 and disallowed after 2035; the most sensitive federal systems must adopt post-quantum key establishment “by December 31, 2030, and for digital signatures by December 31, 2031”.
  • Industry: Anthropic and OpenAI target the first half of 2027 for their own systems; Cloudflare targets the end of 2027, authentication included.

Hybrid X25519MLKEM768 uses ML-KEM-768. That is the default in browsers and the right setting for public web traffic. CNSA 2.0 names ML-KEM-1024, which matters only if you sell to or operate National Security Systems.