In early December 2026 the news was full of RSA. Rumours that it was close to broken, and an NSA advisory telling organisations to move towards post-quantum cryptography now, not later. Nothing deployed had been publicly broken. But "record today, decrypt later" is a real strategy for anyone patient enough to store traffic, so I asked a practical question: what in my own setup would such a recording actually expose?
Key exchange, not signatures
The first thing to get straight is which part of the cryptography matters for a recording. A signature proves who you are talking to, right now. If signatures are broken in ten years, yesterday's connections are not affected. The key exchange is different: it decides the keys that encrypt the traffic. If an attacker has recorded the exchange and can break it later, they can read everything. So the question became: which of my connections use a key exchange that is already post-quantum?
Most of it already was
The check took an afternoon and was mostly good news:
- SSH, everywhere. Modern OpenSSH negotiates a hybrid of ML-KEM and X25519 by default. Every hop in my setup did, including the reverse tunnel that is my one way in from outside.
- HTTPS, everywhere. My websites and internal services use TLS 1.3 with the hybrid X25519MLKEM768, because current browsers and Cloudflare do so by default.
- Backups. Symmetric encryption, which is not the weak spot here.
Two things were not:
- The VPN tunnels on the firewall. All traffic from the home network leaves through two WireGuard tunnels to a commercial VPN. Plain WireGuard uses Curve25519 and nothing else. Inside the tunnel most traffic is HTTPS and still protected, but DNS lookups and the names in TLS handshakes are not, and those are a fine diary of a household.
- One old SSH client. The Windows side of my desktop ships an OpenSSH that knows no post-quantum key exchange at all, so it quietly falls back to classic X25519. Noted, not urgent: it only connects to my own servers.
How the VPN provider does it
WireGuard has a slot for an extra pre-shared key, mixed into the key exchange. If that key comes from a post-quantum algorithm, the tunnel is protected even if Curve25519 falls. My VPN provider does exactly this: bring up a normal tunnel, talk to the server inside it using post-quantum key exchange (ML-KEM and Classic McEliece), and then swap the interface to a fresh private key plus the derived pre-shared key. Their app does it automatically, and for routers they publish a small open-source tool.
The catch: the tool ships for Linux, macOS and Windows. My firewall runs FreeBSD.
Making it run on the firewall
The tool is written in Go, which cross-compiles happily, except for one library: the one that talks to the WireGuard interface needed C bindings on FreeBSD. Rather than fight that, the file that used it was replaced by a thin wrapper around the wg command-line tool, which FreeBSD has. Same behaviour, no C. The build is reproducible from a script, and the binary's checksum is recorded.
On the firewall it runs the way the firewall likes things to run: registered as an action in its own service framework and called from its own scheduler every minute. Every run checks each tunnel and only acts if a tunnel is not already upgraded.
The trap that would have killed the tunnel
Testing found the interesting part. Whenever the firewall applies its WireGuard configuration, for example after an unrelated settings change, it syncs the interface with what its config says. That puts the original private key back, which is expected. But it does not remove the pre-shared key the upgrade had set. Original key plus a pre-shared key the server has never heard of: the server silently rejects every handshake, and the tunnel is dead without a single error message.
So the script looks for exactly that state, "original key and a pre-shared key", clears the key and upgrades again. I tested it both by simulating the state and by triggering a real reconfiguration. Worst case is now about a minute without that tunnel. Testing also caught a small bug: the new handshake can land in the same second as the key swap, so the check has to be "at least as new", not "newer". And a lock, so two runs never overlap.
How I know it's working
The firewall's configuration still holds the original public key. When the tunnel is upgraded, the live interface has a different one. Different means post-quantum. Later the same evening the firewall got a firmware update, and afterwards both tunnels still showed live keys different from the configured ones.
The honest trade-offs
- Unofficial code on the most important box. A self-built binary on the firewall is new attack surface. It is small, built from the provider's own open-source code, and the change is documented and rebuildable.
- A shell was needed. SSH on the firewall is normally off. It was switched on with a key for the job and switched off again afterwards, key removed, checked.
- Restores don't carry it. A config restore brings back the scheduled job but not the files. Until they are rebuilt the tunnels simply run classic, which is where they started.
- If the provider changes the protocol, the upgrade fails, the log says so, and the tunnels stay classic until it is rebuilt.
While I was at it, the firewall's web interface also got a new certificate from a small internal certificate authority, using an elliptic curve on the NSA's accepted list. The old one was about to expire anyway.
Post-quantum cryptography sounds like something for banks and governments. For a home network, most of it turned out to be already done by sensible defaults. The one real gap took an afternoon, one rebuilt tool and a careful look at what happens when the firewall does something it considers perfectly normal.
Originally published at veljkoradan.com.
