In early December I read a thread on X claiming that Anthropic had found something that would shake the world of RSA. I cannot judge that claim, and this post does not depend on it. But it made me ask a question I had never checked: where does my homelab already use post-quantum key exchange, and where not? I spent two days measuring instead of guessing. Most of it was already there, without me doing anything. One host was worse than the rest precisely because I had hardened it. And the gap I cared about most, Tailscale, which announced a post-quantum handshake on 3 December, I closed on the server side the next day, ahead of my own update policy.

Why key exchange and not certificates

The threat that matters today is “harvest now, decrypt later”. Someone who records encrypted traffic now can decrypt it later, once a large enough quantum computer exists, if the session key was agreed with a classical method such as X25519 or ECDH. Nothing I do in ten years can protect traffic that was recorded today.

The answer is a hybrid key exchange: a classical algorithm and a post-quantum one run together, and the session key stays safe as long as either of them holds. In practice that means mlkem768x25519 or sntrup761x25519 for SSH and X25519MLKEM768 for TLS 1.3.

Signatures and certificates are a different matter. A signature only has to hold during the handshake, so recording traffic does not help an attacker later. Browsers and Let’s Encrypt do not support post-quantum certificates yet anyway, so I left that part alone.

The inventory

Path State
SSH to VMs and hypervisors hybrid, but classical still accepted
HTTPS through Traefik hybrid, measured
Talos and the Kubernetes control plane hybrid, measured
Browser to Cloudflare edge hybrid
Cloudflare Tunnel to the edge hybrid, enforced
Tailscale / WireGuard hybrid on routers and VPS (v1.106.4), clients pending
Services on the system OpenSSL none exist

Measuring needs a client that speaks the new algorithms. Ubuntu 24.04 ships OpenSSL 3.0 without ML-KEM, so my VMs were useless as a probe. A Proxmox hypervisor on Debian 13 has OpenSSL 3.5 and OpenSSH 10.0, and became the measuring point.

HTTPS: Go did the work

Traefik is written in Go, and Go has offered X25519MLKEM768 by default since 1.24. So my reverse proxies already spoke it before I looked. I still added a default TLSOption on every Traefik instance that terminates TLS, which puts X25519MLKEM768 first, followed by X25519 and CurveP256. That makes the intent visible in the config instead of depending on a library default.

Then I checked from outside with OpenSSL 3.5:

openssl s_client -connect service.example.com:443 -groups X25519MLKEM768

All four TLS-terminating instances negotiated X25519MLKEM768. Chrome DevTools shows the same in the Security tab, if you prefer a browser.

The Kubernetes cluster runs on Talos, which is also built with Go. The API server, the Talos API, the kubelet and etcd all negotiated X25519MLKEM768, and talosctl and kubectl offer it as clients. That is the whole control plane, with no configuration on my side.

Cloudflare Tunnel: enforced, and that is a trade-off

Public services reach the internet through Cloudflare Tunnel. The edge already offers post-quantum key exchange to browsers. For the leg between my cloudflared instances and Cloudflare, the logs showed that cloudflared offered X25519MLKEM768 first but still kept CurveP256 as a classical fallback.

On 4 December I set TUNNEL_POST_QUANTUM=true on every tunnel instance, in the cluster and on the Docker hosts. Since then the logs list only X25519MLKEM768 in the curve preferences, and every connection registered normally.

This is the one place where I chose to fail closed. If the edge ever stops speaking ML-KEM, the tunnel will not connect instead of quietly falling back to classical. My public services would be down, and I would know why. I prefer that to a silent downgrade I would never notice.

SSH: hybrid everywhere, enforced almost nowhere

OpenSSH has done hybrid key exchange by default for years. The VMs run Ubuntu 24.04 with OpenSSH 9.6 and negotiate sntrup761x25519. The hypervisors on Debian 13 run OpenSSH 10.0 and negotiate mlkem768x25519, if the client knows it. My GitLab SSH endpoint also negotiates sntrup761x25519. Both are hybrid, so for my purposes sntrup761 is good enough.

The surprise was my off-site VPS, the most hardened machine I have. My hardening role pins KexAlgorithms to an explicit list, and that list predated the post-quantum algorithms. So the host I had locked down most carefully was the only one that offered nothing but classical key exchange. The OpenSSH client had even warned me about it for weeks, and I had not acted. I put sntrup761x25519 at the top of the list first, and later the same day I removed the classical algorithms entirely. The role now checks that the CI’s SSH client supports one of the allowed algorithms before it writes the config, so I cannot lock out my own pipeline.

That VPS is the only host that enforces it. When I forced a client to curve25519-sha256, every other machine still accepted the connection:

ssh -o KexAlgorithms=curve25519-sha256 [email protected]

This means a client without post-quantum support falls back silently, and nothing tells me. That is the next step.

Tailscale: v1.106, ahead of schedule

Up to v1.105, Tailscale tunnels use plain WireGuard: a Noise handshake over Curve25519, with no pre-shared key and nothing post-quantum. Tailscale v1.106 adds an ephemeral ML-KEM-768 exchange to the WireGuard handshake. It is hybrid: the keys hold as long as either WireGuard or ML-KEM-768 holds. It is on by default and has no switch, but only when both peers run v1.106 or newer. Otherwise the connection falls back to the standard WireGuard handshake. The announcement named no way to check which one you got; v1.106.4 adds one: tailscale status --verbose marks such a connection as hybrid-pq.

For me, “both peers” means a lot of devices. My phone reaches home through two subnet routers, pinned to a version that Renovate bumps without automerge, and my config waits three days after a release before it proposes one. I did not wait. I bumped the pin to v1.106.4 by hand, upgraded the first router manually and checked it, and only then merged, which rolled out the second router and the probe container on the VPS. The connection from the second router to the VPS showed hybrid-pq right away.

That breaks my own rule, and on the two machines where a bad release hurts most: they are my only way into the lab from outside. I accepted it for two reasons. The .4 release was itself the hotfix the waiting period is meant to catch, and doing one router first meant a bad release would have cost me half my remote access, not all of it.

The clients are next: phone and tablet update through the App Store, desktop and laptop through their own installers. Until they do, anything that crosses the tunnel between them and the routers without its own TLS or SSH is protected only by classical key exchange. Most of my traffic has that second layer. My game stream does not.

What I decided not to do

Ubuntu 24.04’s OpenSSL 3.0 has no ML-KEM, so I looked at whether anything on my VMs terminates TLS with it. A scan of all listeners found nothing: the only host process linked against OpenSSL is sshd, which uses libcrypto but does its key exchange itself. Every TLS port belongs to Traefik, and containers bring their own, newer OpenSSL. What remains classical is outgoing traffic from host tools such as apt and curl.

Patching that is not worth it. oqs-provider is not packaged for Ubuntu 24.04, and a self-built or backported OpenSSL 3.5 replaces a core library and cuts it off from Ubuntu’s security updates. Ubuntu 26.04 brings ML-KEM in OpenSSL and OpenSSH as a normal part of the release, and that is the lever I will use. A few machines stay on 24.04 on purpose, the Tailscale nodes and a VM with GPU passthrough among them. They keep sntrup761x25519 for SSH, which is hybrid too.

What is next

  • Tailscale v1.106 on the remaining clients (phone, tablet, desktop, laptop); routers and VPS are done.
  • Enforce post-quantum SSH everywhere. First I will log for a few days which clients still use classical key exchange, on the agent VM and on GitLab. The critical one is the app on my phone, Herdr Mobile, which is my way into that VM. If its SSH connection cannot do sntrup761 or mlkem768, enforcing would lock me out. After that, the hardening role gets a post-quantum-only list, as on the VPS: mlkem768x25519-sha256 and sntrup761x25519 only.

The lesson I take from this: most of the work was done for me by Go, OpenSSH and Cloudflare defaults. The part that needed me was finding the places where my own configuration had pinned the old world, and deciding where a silent fallback is acceptable and where it is not.

Further reading