Post-Quantum Cryptography in a Real Homelab: What Works Today
A practical field guide to auditing TLS and SSH key exchange, retiring RSA SSH keys, and rolling out 256-bit WireGuard PresharedKeys across Linux and Home Assistant OS.
Most post-quantum cryptography articles read like a compliance memo. They talk about NIST timelines, quote Shor's algorithm, and stop right before telling you what to type into a terminal.
I wanted to know what actually breaks, what already works, and what I could fix this week across a 59-host homelab. The short answer surprised me. More of my stack was already hybrid post-quantum than I expected, and the real gaps were mundane ones I could fix in an afternoon.
Here is what I measured, what I changed, and the exact commands you can run against your own lab.
Start by Measuring, Not Guessing
Before changing a single config, probe what your hosts already negotiate. Modern Go, OpenSSL 3.5+, and OpenSSH 9.9+ turned on hybrid post-quantum key exchange by default. If you do not check first, you will spend a weekend trying to "fix" endpoints that are already protected against harvest-now-decrypt-later collection.
For any TLS 1.3 endpoint, check the negotiated key exchange group with OpenSSL 3.5+:
openssl s_client -connect app.lab.example:443 -servername app.lab.example </dev/null 2>/dev/null \
| grep -E "Protocol|Cipher|Server Temp Key|Peer Temp Key|Negotiated TLS1.3 group|Peer signature"
A hybrid post-quantum handshake looks like this:
Protocol : TLSv1.3
Cipher : TLS_AES_256_GCM_SHA384
Peer Temp Key: X25519MLKEM768, 1216 bits
Negotiated TLS1.3 group: X25519MLKEM768
A classical TLS 1.3 backend shows X25519, 253 bits or P-256, 256 bits instead.
Across 53 reachable TLS endpoints in my lab, 42 were already negotiating X25519MLKEM768 out of the box: Traefik, Vault, Authentik, all six Proxmox nodes, Proxmox Backup Server, Kopia, Home Assistant, and my Caddy gateways. Ten internal backends (TrueNAS, Technitium DNS on Debian 12, Pi-hole FTL, NiFi, Plex) were still on classical TLS 1.3 because of bundled OpenSSL 3.0, MbedTLS, or older Java runtimes. One older NAS appliance was still on TLS 1.2.
That one probe changed my entire plan. Instead of fighting Traefik or rewriting TLS configs, I left Go and OpenSSL defaults alone and focused on the three things that actually needed work: SSH keys, WireGuard tunnels, and tracking the remaining upstream runtimes.
Check SSH Key Exchange and Retire Legacy RSA
SSH has two separate cryptographic layers: key exchange (confidentiality of the session) and authentication keys (identity).
Check what key exchange algorithm each host negotiates:
ssh -vv -o BatchMode=yes [email protected] exit 2>&1 | grep -i "kex: algorithm:"
You want to see one of the two hybrid algorithms:
debug1: kex: algorithm: mlkem768x25519-sha256
Older OpenSSH 9.x hosts will show sntrup761x25519-sha512, which is also hybrid post-quantum. Across 59 active hosts, 58 were already on PQ key exchange (26 on mlkem768x25519-sha256, 32 on sntrup761x25519-sha512). Only one legacy NAS running OpenSSH 7.6 was still classical.
Authentication keys were a different story. A dozen hosts still accepted an old RSA admin key, and several had it sitting in both user and /root/.ssh/authorized_keys. OpenSSH does not ship a standardized post-quantum user signature algorithm yet, so Ed25519 is the right baseline today. It is smaller, faster, and removes every 2048-bit RSA key from your fleet while you wait for standardized PQ SSH signatures.
To verify a host only holds your Ed25519 key:
ssh -o BatchMode=yes -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 [email protected] \
'ssh-keygen -lf ~/.ssh/authorized_keys'
Migrate every host to Ed25519 first, verify batch SSH works across the full fleet, then strip the old RSA key from every authorized_keys file, delete ~/.ssh/id_rsa, remove it from your SSH client keychain, and archive it in your password manager.
Add 256-Bit WireGuard PresharedKeys Without Dropping Tunnels
WireGuard uses X25519 for its Noise handshake, which is classical. It also has a built-in escape hatch: an optional per-peer 256-bit symmetric PresharedKey mixed directly into the handshake. Symmetric 256-bit keys resist Grover's algorithm with 128 bits of post-quantum security left over.
Generate one fresh key per peer pair:
wg genpsk
Store the key in your password manager and stage it as a root:root 0600 file on both peers (psk-<peer-name>.key) alongside private.key. Never commit it to Git.
Linux (wg-quick) Peers
If you manage WireGuard with Ansible or a render script, assemble PresharedKey = <value> into each [Peer] block at render time, then apply it live without tearing down the interface:
wg syncconf wg-ups <(wg-quick strip /etc/wireguard/wg-ups.conf)
One gotcha I hit the hard way: wg syncconf replaces the live interface configuration with whatever is in the stripped file. If your render script forgets to include PrivateKey = ... under [Interface], wg syncconf exits 0 and silently clears the interface's private key. Always verify three things right after syncing:
wg show wg-ups public-key
wg show wg-ups preshared-keys | awk '{print $1, ($2=="(none)"?"none":"SET")}'
ping -n -I wg-ups -c 2 -W 3 10.0.20.12
Home Assistant OS (NetworkManager)
If one side of your tunnel runs on Home Assistant OS, you do not have wg-quick. HAOS manages WireGuard through NetworkManager keyfiles in /etc/NetworkManager/system-connections/.
Under each [wireguard-peer.<PEER_PUBLIC_KEY>] section, add both preshared-key and preshared-key-flags=0:
[wireguard-peer.REPLACE_WITH_PEER_PUBLIC_KEY=]
endpoint=10.0.10.51:51820
allowed-ips=10.0.20.9/32;
preshared-key=REPLACE_WITH_BASE64_PSK
preshared-key-flags=0
Setting preshared-key-flags=0 tells NetworkManager to read the key directly from the 0600 root-owned connection file at boot instead of waiting for a desktop secret agent.
Keep the profile rendering isolated. In my setup, a small Python adapter validates 0600 ownership and O_NOFOLLOW custody on private.key and each psk-<peer>.key, writes the .nmconnection file atomically, and reloads it with nmcli:
nmcli connection load /etc/NetworkManager/system-connections/homelab-wg-ups.nmconnection
nmcli connection down homelab-wg-ups && nmcli connection up homelab-wg-ups
The Home Assistant core container PID never changes, and every peer link moves to post-quantum symmetric protection in seconds.
What Is Still Upstream (and Moving Fast)
Two pieces that looked "years away" six months ago just landed upstream:
- HashiCorp Vault 2.2.x now supports ML-DSA certificates and issuers natively in the PKI secrets engine, built on Go's
crypto/mldsa. - Authentik 2026.11 merged ML-DSA certificates, WebAuthn ML-DSA, AES-256 SAML encryption, and ML-DSA JWT signing tokens (
kty: AKP).
The real bottleneck now is the relying-party ecosystem. Even when your identity provider can sign ML-DSA-65 JWTs, downstream OIDC clients and reverse proxies still need to parse mixed kty: AKP JWKS endpoints and handle 4.5 to 5 KB Authorization: Bearer headers without choking on 4 KB header buffers. OS and browser trust stores still need to catch up on ML-DSA X.509 roots too.
For internal backends stuck on classical TLS 1.3 (TrueNAS, Debian 12 services, Pi-hole FTL, older Java runtimes), keep them on your private LAN behind a hybrid TLS reverse proxy like Traefik, and re-probe after major OS upgrades (Debian 13 / OpenSSL 3.5+, TrueNAS 26.x, Java 24+).
A Simple Verification Loop
Treat post-quantum migration like any other infrastructure upgrade:
- Probe live TLS and SSH handshakes and save a CycloneDX 1.6 CBOM outside Git.
- Retire classical RSA admin keys and enforce Ed25519 across the fleet.
- Add 256-bit
PresharedKeys to every WireGuard peer pair, including NetworkManager appliances. - Set a quarterly reminder to re-probe after OS, Vault, and Authentik upgrades.
You do not need to wait for the entire ecosystem to finish before closing the harvest-now-decrypt-later window on your own network. Most of the tools are already sitting on your hosts.