---
title: "The NSA's Post-Quantum Warning: I Tested My Home Server"
description: "Two commands show whether your server's TLS and SSH sessions use post-quantum key exchange yet, what X25519MLKEM768 means, and which half is still classical."
date: 2026-12-03
categories: ["self-hosting"]
tags: ["post-quantum","openssh","tls"]
---

Run `openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -tls1_3` and read the `Negotiated TLS1.3 group` line. `X25519MLKEM768` means the connection already uses a post-quantum key exchange.

I ran it on bitdoze.com the day after the NSA's December 2 advisory and got that line. The same handshake signs with an EC P-256 certificate, which is classical crypto. Every stock install I tested lands on the same split result. The key exchange is post-quantum, and the identities that prove who is on the line are not.

The test takes a minute, and the result depends on the machine you run it from. This article shows the commands, the real output, and where an old client or an old TLS library changes the answer.

![Terminal showing the openssl test against bitdoze.com: the negotiated group is X25519MLKEM768 while the certificate key is id-ecPublicKey, a 256-bit elliptic curve key](../../assets/images/26/12/check-post-quantum-tls-ssh-terminal.webp)

*The same handshake on bitdoze.com. The key exchange is hybrid, the certificate is a 256-bit elliptic curve key. Output from December 3, 2026.*

## What the NSA said, and what it did not

On December 2, 2026 the [NSA advised](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/) "National Security Systems (NSS) owners, operators, and vendors to immediately accelerate the transition to post-quantum cryptography". The press release gives two reasons. One is the old one, quantum computers. The other is new: "Frontier SI companies have engaged with the U.S. government to responsibly disclose recent discoveries that impact the security of some cryptographic systems currently in use."

A [joint statement from ONCD, NSA and CISA](https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662453/joint-statement-from-oncd-nsa-and-cisa-on-recent-advances-in-cryptographic-and/) published the same day adds the reassurance. Its assessment, and the limit of what is public, is that "recent SI advances do not present an immediate and widespread threat to that cryptography."

So three things are confirmed. Frontier AI companies told the government about something that weakens "some cryptographic systems currently in use". Officials do not consider it an immediate, widespread threat. The NSA tells government systems to move now, and the joint statement asks industry to "expeditiously upgrade" what runs today. Not public: which systems, which algorithms, how practical the attack is, and what it costs to run. The advisory PDF that the press release links to refused my fetches, so I could not read the full text. The story collected about 2,000 points on [Hacker News](https://news.ycombinator.com/item?id=50730738) in its first day.

Cryptography engineer Filippo Valsorda worked through the advisory's wording the same day. [His reading](https://words.filippo.io/nsa-advisory/) is more pointed than the official wording. In his summary, 256-bit elliptic curves such as P-256, X25519 and Ed25519 are probably broken or far weaker than assumed. RSA and P-384 "might be fine as an interim solution", and ML-DSA and ML-KEM are "doing fine". He calls it a "get off 256-bit elliptic curves" advisory. That is one expert's interpretation, not an NSA statement.

His reading fits my test result. The half that is already post-quantum, the key exchange, is the half he tells practitioners to fix first. The half that is still classical, Ed25519 host keys and P-256 certificates, is the family his reading puts under suspicion.

## Why this reaches a home lab

"Harvest now, decrypt later" is the reason key exchange comes first. Anyone who records your traffic today can keep it until the math catches up. A session that used a post-quantum key exchange stays sealed. A session that used plain X25519 does not.

These are the entry points a home server exposes:

| Entry point | Protocol | Key exchange | Test |
| --- | --- | --- | --- |
| Admin panels, dashboards and Git over HTTPS behind the reverse proxy | TLS 1.3 | negotiated per connection | `openssl s_client` |
| Shell, SFTP and Git over SSH, plus every [SSH tunnel](/ssh-tunneling-linux/) and [jump host](/ssh-proxyjump-jumphost/) hop | SSH | negotiated per connection | `ssh -vv` |
| WireGuard between two of your own machines | WireGuard | fixed: Curve25519, no negotiation | nothing to test |
| Mesh VPN products built on WireGuard | vendor specific | vendor specific | the vendor's docs |

WireGuard's [protocol page](https://www.wireguard.com/protocol/) lists Curve25519 for ECDH, and the protocol "intentionally avoids protocol agility", as [Tailscale's documentation](https://tailscale.com/docs/concepts/post-quantum-cryptography) puts it. A plain WireGuard tunnel has no post-quantum mode to switch on. Products layered on top add their own, and their docs change faster than the protocol, so check the one you run.

A private Git server sits behind two rows. Git over HTTPS rides the reverse proxy. Git over SSH rides sshd.

## How do you test a server for post-quantum TLS?

Run `openssl s_client` with `-tls1_3` and look for the `Negotiated TLS1.3 group` line. `X25519MLKEM768` is the hybrid group. No group line, with a `Temp Key` of `X25519`, means a classical exchange.

```sh
openssl s_client -connect bitdoze.com:443 -servername bitdoze.com \
  -tls1_3 </dev/null 2>/dev/null | grep -E "Negotiated|Temp Key"
```

```text
Negotiated TLS1.3 group: X25519MLKEM768
```

The pipe hides the certificate dump that `s_client` prints by default. `</dev/null` closes stdin so the command returns on its own.

Three things change what that line says.

### The OpenSSL version on the client

The client offers the groups. OpenSSL 3.5, the current long term support release, made X25519MLKEM768 a default key share ([OpenSSL](https://openssl-corporation.org/post-quantum.html)). OpenSSL 3.0 never learned the group. Here is the same Debian 13 nginx, probed from two clients on the same machine:

```text
OpenSSL 4.0.3:   Negotiated TLS1.3 group: X25519MLKEM768
OpenSSL 3.0.13:  Server Temp Key: X25519, 253 bits
```

Ubuntu 24.04 ships OpenSSL 3.0.13. Testing from a machine like that reports "classical" even for servers that support the hybrid. Run `openssl version` before you trust a negative result.

### What terminates TLS on the server

nginx and Apache use the OpenSSL of their distribution, so the distribution release decides. Caddy and other Go servers bring their own TLS stack, which has had the hybrid on by default since [Go 1.24](https://go.dev/doc/go1.24). [Traefik](/traefik-proxy-docker/) is a Go program as well, though I only tested Caddy. I installed nginx from the default repositories in five containers and pointed OpenSSL 4.0.3 at each one:

| Server, default packages on December 3, 2026 | TLS library | Result |
| --- | --- | --- |
| Ubuntu 22.04, nginx 1.18.0 | OpenSSL 3.0.2 | `Peer Temp Key: X25519, 253 bits` |
| Ubuntu 24.04, nginx 1.24.0 | OpenSSL 3.0.13 | `Peer Temp Key: X25519, 253 bits` |
| Debian 12, nginx 1.22.1 | OpenSSL 3.0.22 | `Peer Temp Key: X25519, 253 bits` |
| Debian 13, nginx 1.26.3 | OpenSSL 3.5.10 | `Negotiated TLS1.3 group: X25519MLKEM768` |
| Ubuntu 26.04, nginx 1.28.3 | OpenSSL 3.5.5 | `Negotiated TLS1.3 group: X25519MLKEM768` |
| Caddy 2.11.9, official image | Go | `Negotiated TLS1.3 group: X25519MLKEM768` |

The three that passed needed no configuration. A server that knows the group offers it out of the box.

### A CDN in front of the domain

`bitdoze.com` answers with a `server: cloudflare` header, so my result describes Cloudflare's edge, not an origin of mine. Cloudflare has offered post-quantum hybrid key agreement on every zone by default since [2022](https://blog.cloudflare.com/post-quantum-for-all/). The test is still worth running there, because it shows which of your clients can use it. It says nothing about the connection from the edge back to your origin.

![Flowchart for reading the openssl result: the X25519MLKEM768 line means post-quantum exchange; without it, check the client OpenSSL version, then whether a CDN, nginx or Apache, or Caddy ends the TLS connection](../../assets/images/26/12/check-post-quantum-tls-ssh-tls-flow.webp)

*Start with the group line. When it is missing, check the client before you blame the server, then check which machine ends the TLS connection.*

I recorded the same TLS and SSH tests for the WEBdoze channel:

Video: [Is Your Linux Server Post-Quantum Ready? (TLS 1.3 & SSH Test)](https://www.youtube.com/embed/z38emqpIoV0)

## What does X25519MLKEM768 protect, and what does it not?

It protects recorded traffic. [RFC 10024](https://www.rfc-editor.org/rfc/rfc10024) (August 2026) defines the group as two key exchanges run at once, X25519 and ML-KEM-768, with both results joined into one session key. A hybrid keeps the connection secret "as long as at least one of the component algorithms remains secure". Breaking the X25519 half alone does not open the recording.

![Diagram of the hybrid key exchange: the client sends an X25519 share of 32 bytes and an ML-KEM-768 share of 1184 bytes, the server sends its shares back, both secrets form one session key and recorded traffic stays unreadable unless both halves are broken](../../assets/images/26/12/check-post-quantum-tls-ssh-hybrid.webp)

*Two shares travel in each direction. An attacker who breaks only one of the two algorithms still has nothing.*

The sizes explain why the roll-out took its time. The client's share is 1,216 bytes, 1,184 of them ML-KEM, against 32 bytes for plain X25519 (RFC 10024, section 4.1). Cloudflare's 2022 post lists middleboxes that choke on large key shares among its main deployment worries.

The group does not touch the certificate. This reads the key type of the certificate the server presented:

```sh
openssl s_client -connect bitdoze.com:443 -servername bitdoze.com \
  </dev/null 2>/dev/null | openssl x509 -noout -text \
  | grep -E "Public Key Algorithm|Public-Key|Signature Algorithm" \
  | sort -u
```

```text
Public-Key: (256 bit field, 128 bit security level)
Public Key Algorithm: id-ecPublicKey
Signature Algorithm: ecdsa-with-SHA256
```

`id-ecPublicKey` with a 256-bit key is an EC P-256 certificate. The secrecy of the connection no longer depends on that curve. The proof that you are talking to bitdoze.com, and not to an impostor, still does. Those are different attacks. Reading a recording needs the key exchange broken. Impersonating the site in a live session needs the signature key broken.

The certificate half is also the half a self-hoster cannot fix alone. A browser only accepts a chain it trusts, so the change has to come from the certificate authorities. [Let's Encrypt](https://letsencrypt.org/2026/06/03/pq-certs) announced in June 2026 that its path is Merkle Tree Certificates, with a staging issuer planned for late 2026 and production in 2027. Valsorda's short list for the meantime is to move private CAs to ML-DSA, or to RSA 3072 or P-384 where that is impossible. It also says to get ready to rotate WebPKI certificates and update the ACME stack.

## Is your SSH connection post-quantum?

For the key exchange, yes on every stock server I tested, as long as the client is current. OpenSSH has used a post-quantum key exchange by default since 9.0 (April 2022), first `sntrup761x25519-sha512@openssh.com`, then `mlkem768x25519-sha256` as the default from 10.0 (April 2025) ([OpenSSH](https://www.openssh.org/pq.html)). The host key and your own key are still Ed25519, ECDSA or RSA.

Run this instead of a normal login, so that the debug output stays visible:

```sh
ssh -vv server.example.com true 2>&1 \
  | grep -E "kex: (algorithm|host key)|accepts key|Authenticated"
```

On the Ubuntu 24.04 build machine, `ssh -vv localhost` prints:

```text
debug1: kex: algorithm: sntrup761x25519-sha512@openssh.com
debug1: kex: host key algorithm: ssh-ed25519
```

With an OpenSSH 10.6 client against the Debian 13 container, the same command adds the login lines (key path shortened, fingerprint and trailing flag cut):

```text
debug1: kex: algorithm: mlkem768x25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: Server accepts key: ~/.ssh/id_ed25519 ED25519 SHA256:Skdv...
Authenticated to 127.0.0.1 ([127.0.0.1]:2205) using "publickey".
```

Three lines, three jobs:

![Table diagram of the three crypto jobs in an SSH session: the key exchange reported by kex algorithm is hybrid by default since OpenSSH 9.0, the host key reported by kex host key algorithm is still Ed25519, ECDSA or RSA, and the user key reported by Server accepts key is Ed25519 by default with an ML-DSA hybrid key type in 10.6](../../assets/images/26/12/check-post-quantum-tls-ssh-ssh-jobs.webp)

*The first line is post-quantum on every stock install. The second and third are where the classical keys still live.*

1. `kex: algorithm` is the key exchange, the part that keeps the session secret. `mlkem768x25519-sha256` and `sntrup761x25519-sha512` are the post-quantum names. `curve25519-sha256` and the `ecdh-sha2-nistp` names are classical.
2. `kex: host key algorithm` is how the server proves its identity. The 10.6 client saw `ssh-ed25519` on all five servers.
3. `Server accepts key` is how you prove yours. Every stock install accepted an `ED25519` key.

For the server side, without connecting, run this as root on the host:

```sh
sudo sshd -T | grep -i "^kexalgorithms"
```

```text
kexalgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,...
```

That is Debian 13, cut after the first two names. Ubuntu 22.04's 8.9 lists `curve25519-sha256` first and `sntrup761x25519-sha512` after the ECDH methods. An older release, or a pinned `KexAlgorithms` line, has no post-quantum name at all. The [SSH hardening guide](/secure-ssh-server-linux/) covers the `KexAlgorithms` line and the names to keep in it.

The client decides here too. SSH takes the first algorithm in the client's list that the server also offers, so an old client gets a classical exchange even from a new server. I connected four clients to five stock `openssh-server` installs:

| Client | Ubuntu 22.04 (8.9p1) | Ubuntu 24.04 (9.6p1) | Debian 12 (9.2p1) | Debian 13 (10.0p2) | Ubuntu 26.04 (10.2p1) |
| --- | --- | --- | --- | --- | --- |
| OpenSSH 10.6p1 | sntrup761 | sntrup761 | sntrup761 | mlkem768 | mlkem768 |
| OpenSSH 9.6p1, Ubuntu 24.04 | sntrup761 | sntrup761 | sntrup761 | sntrup761 | sntrup761 |
| OpenSSH 8.9p1, Ubuntu 22.04 | curve25519 | not tested | not tested | curve25519 | curve25519 |
| OpenSSH 8.2p1, Ubuntu 20.04 | curve25519 | not tested | not tested | curve25519 | curve25519 |

In the table, `sntrup761` is short for `sntrup761x25519-sha512`, `mlkem768` for `mlkem768x25519-sha256` and `curve25519` for `curve25519-sha256`. An Ubuntu 22.04 laptop got `curve25519-sha256` from all three servers I tried with it.

Since OpenSSH 10.1 the client says so out loud when a server has no post-quantum exchange. I limited a test `sshd` to `curve25519-sha256` and connected with a default 10.6 client:

```text
** WARNING: connection is not using a post-quantum key exchange algorithm.
** This session may be vulnerable to "store now, decrypt later" attacks.
** The server may need to be upgraded. See https://openssh.com/pq.html
```

The warning stays silent if you set `KexAlgorithms` on the client yourself, because the client assumes you chose that. Version 10.6 adds the same notice to the server log, on by default:

```text
WARNING: connection from 127.0.0.1 port 43716 is not using \
    a post-quantum key exchange algorithm: "curve25519-sha256" [preauth]
```

That log line, wrapped here, is how you find out which of your own machines still connect the old way.

## The OpenSSH twist: signatures start moving in 10.6

Key exchange was the easy half. Signatures need new key types on both ends, and no stable distribution I tested ships them yet.

The timeline, from the release notes:

| Version | Change |
| --- | --- |
| [9.0](https://www.openssh.org/pq.html), April 2022 | `sntrup761x25519-sha512@openssh.com` is the default key exchange |
| [10.0](https://www.openssh.org/pq.html), April 2025 | `mlkem768x25519-sha256` becomes the default key exchange |
| [10.1](https://www.openssh.org/pq.html) | the client warns about a non post-quantum exchange |
| [10.4](https://www.openssh.com/txt/release-10.4), July 2026 | experimental ML-DSA 44 plus Ed25519 signature, off by default |
| [10.6](https://www.openssh.com/txt/release-10.6), October 6, 2026 | `ssh-mldsa44-ed25519` is on by default; keys made with the 10.4 version must be regenerated |

I built 10.6p1 from source and ran it on both ends with default configuration. Four things worked without a line of config:

- `ssh -Q key` lists `ssh-mldsa44-ed25519`.
- `ssh-keygen -t mldsa44-ed25519` creates a key whose public line starts with `ssh-mldsa44-ed25519`. The public key file is 1,861 bytes, against 93 bytes for an Ed25519 key.
- With that public key in `authorized_keys`, the login line reads `debug1: Server accepts key: ~/.ssh/id_mldsa MLDSA44-ED25519 SHA256:T2tI... explicit`.
- With an ML-DSA key loaded as a `HostKey`, the client reports `kex: host key algorithm: ssh-mldsa44-ed25519`. Offered both, a 10.6 client picks the ML-DSA host key.

Debian 13 ships 10.0p1 and Ubuntu 26.04 ships 10.2p1 (packages from December 3, 2026). For now the signature half is a source build or a wait. Keep an Ed25519 key next to any ML-DSA key. An older `sshd` lists only the classic key types in `PubkeyAcceptedAlgorithms` and so cannot accept the new one.

**Do not swap sshd on a box you cannot reach**

Keep the distribution's `openssh-server` until it carries 10.6. Try the ML-DSA keys on two containers first, and keep an Ed25519 key in `authorized_keys` the whole time. Leave an open session on any remote host before you restart `sshd`. Replacing the host key makes every client warn about a changed key, so add the new one next to the old one instead.

## What to do on your own machines

The NSA's three steps for government systems are inventory, assess risk, and triage. They translate without much change:

1. Inventory. Run the two commands on every host and note the output next to `openssl version` and `ssh -V`. Add `sudo sshd -T | grep -i "^kexalgorithms"` for each `sshd`, the same way you would for the [exposed ports in the BSI report](/bsi-security-report-docker-ufw/).
2. Assess. A domain behind a CDN passes the TLS test today and tells you little. A VPS on Ubuntu 24.04 or Debian 12 fails it until its TLS moves to a newer stack. A `KexAlgorithms` line pinned without the post-quantum names fails the SSH test on a server that would otherwise pass.
3. Triage. Update the client you test from. For services that need the hybrid today, terminate TLS in Caddy, as in the [Hermes dashboard guide](/hermes-dashboard-guide/), or on a distribution with OpenSSL 3.5.

Two things stay off the list. Do not flash a new `sshd` onto a remote box to chase 10.6. And do not drop the classic key exchange names from `sshd_config` until every client that connects has been updated. A client without post-quantum exchange support has nothing left to negotiate.

The TLS side has one limit. The hybrid exists for TLS 1.3 only. A service that still speaks TLS 1.2 to its clients cannot use it.

My scorecard for today is short. The site passes the TLS test through Cloudflare, the build machine passes the SSH test with `sntrup761x25519`, and nothing I run has a post-quantum signature yet. The next things worth watching are the first stable release to ship OpenSSH 10.6, Let's Encrypt's production Merkle Tree Certificates in 2027, and whatever the agencies disclose next.

## FAQ

**Is my site quantum-safe if openssl shows X25519MLKEM768?**

No. That line covers the key exchange only, which protects recorded traffic. The certificate is still RSA or ECDSA, and an attacker who forges the signature key can impersonate the site in a live session. The hybrid fixes the half that has to move first, not the whole handshake.

**Why does openssl show X25519 when my browser gets a post-quantum connection?**

The client offers the groups. Chrome has sent a hybrid key share by default since 2024 and switched it to ML-KEM in Chrome 131. Firefox added the ML-KEM hybrid in version 132. An OpenSSL older than 3.5 never sends it. The same Debian 13 nginx answered `X25519MLKEM768` to OpenSSL 4.0.3 and `X25519, 253 bits` to OpenSSL 3.0.13 in my test. Check `openssl version` before you blame the server.

**Does OpenSSH 9.6 on Ubuntu 24.04 support post-quantum crypto?**

For key exchange, yes. It negotiates `sntrup761x25519-sha512` by default, and it did so against all five servers in my table. For signatures, no. Its host keys and user keys are Ed25519, ECDSA or RSA, and the `ssh-mldsa44-ed25519` key type only exists from 10.4.

**Should I replace my SSH host keys with ML-DSA keys now?**

Only when both ends run OpenSSH 10.6, and only next to the existing Ed25519 host key. Add the new key with an extra `HostKey` line instead of removing the old one, run `sudo sshd -t`, and keep a session open for the restart. If you replace the key instead, every client warns about a changed host key on first contact.

**Does WireGuard use a post-quantum key exchange?**

No. The protocol fixes the handshake to Curve25519 and has no algorithm negotiation, so a tunnel between two of your own machines has nothing to turn on. Mesh VPN products built on WireGuard add their own scheme, and that differs per vendor, so check the documentation of the one you run.

**Does Cloudflare in front of my domain make my origin post-quantum?**

It makes the visitor's connection to Cloudflare post-quantum, and my test of bitdoze.com shows exactly that. The connection from the Cloudflare edge back to your origin is negotiated separately, and I did not test it. Run the `openssl s_client` command against the origin's own address if you need that answer.

**Does TLS 1.2 support X25519MLKEM768?**

No. RFC 10024 defines the hybrid groups for TLS 1.3, and the test command passes `-tls1_3` for that reason. A service that only speaks TLS 1.2 to its clients cannot negotiate the hybrid.

**Which algorithms did the NSA say are broken?**

None by name. The press release says frontier AI companies disclosed discoveries that affect "some cryptographic systems currently in use", and the joint statement says there is no immediate and widespread threat. Valsorda's reading of the advisory's inventory list puts 256-bit elliptic curves and EdDSA under suspicion and leaves RSA and P-384 as stopgaps. That is his interpretation, not an official list.