My Blog Is Post-Quantum Now (Mostly)
How to check if your site is safe from harvest-now-decrypt-later, and a step-by-step guide to post-quantum TLS and SSH on a Hetzner VPS with Ubuntu, nginx, Caddy and Tailscale.
The ten-second test
This weekend I wanted to know whether my blog is safe from "harvest now, decrypt later": someone recording traffic today and decrypting it once quantum computers are big enough. One OpenSSL command answers that:
openssl s_client -connect artdaw.com:443 -groups X25519MLKEM768
It came back with Negotiated TLS1.3 group: X25519MLKEM768, which means post-quantum. Then I checked the server: Ubuntu 24.04 with OpenSSL 3.0.13, which has no ML-KEM at all. The connection was post-quantum, but not because of anything my server did.
This post is what I learned working that out. It covers what "post-quantum" actually means for a self-hosted server in December 2026, three gotchas I hit, and a step-by-step guide for anyone running their own VPS on Hetzner with Ubuntu.
What "post-quantum" means for a web server
Post-quantum cryptography comes in two kinds, and they matter on different timelines:
- ML-KEM protects key exchange, the secret that encrypts your traffic. This is the urgent part, because recorded traffic can be decrypted years later.
- ML-DSA protects signatures: certificates and SSH keys. A forged signature only helps an attacker at the moment of the attack, so this part can wait a little longer.
Everything practical today is hybrid. X25519MLKEM768 combines classical X25519 with ML-KEM-768, so the connection stays safe as long as either half holds.
Bigger classical keys don't help. P-384 often comes up as the "stronger" curve, but Shor's algorithm breaks it just like P-256 and RSA. A larger curve buys nothing against a quantum computer.
Here's what you can actually make post-quantum on a VPS right now:
| Layer | Post-quantum today? | How |
|---|---|---|
| Web traffic (TLS key exchange) | Yes | nginx on OpenSSL 3.5+, or Caddy 2.10+ |
| SSH session (key exchange) | Yes, by default | OpenSSH 9.0+ on both ends |
| SSH login key | Only with OpenSSH 10.6+ on both ends | ssh-keygen -t mldsa44-ed25519 |
| TLS certificate | No | Browsers don't accept post-quantum certificates yet |
| Tailscale tunnel | No | WireGuard is classical; SSH inside it stays post-quantum |
Three gotchas I hit
1. The openssl on a Mac isn't OpenSSL. macOS ships LibreSSL under that name. It has no ML-KEM and never prints the negotiated group, so my first test told me nothing. The fix:
brew install openssl@3
$(brew --prefix openssl@3)/bin/openssl version
2. My grep "worked" on the first try. I piped the output through grep -i group and got matches. They were from "Internet Security Research Group", Let's Encrypt's company name in the certificate chain. Grep for negotiated instead.
3. Know where your TLS actually ends. My server's nginx can't do ML-KEM, yet the handshake was post-quantum, because [Cloudflare] handles TLS in front of my VPS. That means two hops: visitor to edge, which is already post-quantum, and edge to my server, which stays classical until I upgrade. If your test result surprises you, check with curl -sI https://your-site | grep -i "^server" before you change anything.
Part 1: Get your server ready
Check your versions
Four numbers decide what you can do. Run these on the server:
lsb_release -ds
openssl version
ssh -V
nginx -V 2>&1 | grep -io "openssl [0-9.]*"
| Component | Needed for | Ubuntu 24.04 | Ubuntu 26.04 |
|---|---|---|---|
| OpenSSL (used by nginx) | Post-quantum TLS (needs 3.5+) | 3.0.13: no | 3.5.5: yes |
| OpenSSH | Post-quantum SSH key exchange (needs 9.0+) | 9.6: yes | 10.2: yes |
| OpenSSH | ML-DSA login keys (needs 10.6+) | No | No |
Set up a safety net in Hetzner Console
The next steps upgrade the OS and lock down SSH, so make sure you can get back in if something breaks:
- Take a snapshot under the server's Snapshots tab. You can rebuild from it or start a new server from it. Attached volumes aren't included.
- Test the web console with the icon at the top right of the server page. It's a local login, so it works even when SSH is blocked.
- No root password? Servers created with an SSH key don't have one. Use Rescue → Reset Root Password, and save the result in your password manager.
Upgrade to Ubuntu 26.04
Ubuntu 26.04 ships OpenSSL 3.5, and the direct upgrade from 24.04 has been open since 29 September 2026.
- Install all updates and reboot:
sudo apt update && sudo apt full-upgrade -y && sudo reboot - When you upgrade over SSH, the upgrader starts a backup sshd on port 1022. If your firewall only allows port 22, open 1022 too for now.
- Run
sudo do-release-upgrade. It runs insidescreen, so if your connection drops, log back in and runsudo screen -x. - Keep your own versions of config files you've edited, such as
sshd_configandnginx.conf. - After the reboot, re-enable third-party package sources (Tailscale, Docker, nginx.org) in
/etc/apt/sources.list.d/, changenobletoresolute, and close port 1022 again.
Don't compile OpenSSL yourself and install it over the system copy. sshd and apt depend on that library, and replacing it is an easy way to lock yourself out. If you'd rather stay on 24.04 for now, use Caddy (Part 2).
Part 2: Turn on post-quantum TLS
nginx
Once nginx runs on OpenSSL 3.5, it takes one line. First check whether a curve setting already exists, because nginx refuses duplicates:
sudo grep -rn "ssl_ecdh_curve" /etc/nginx/ /etc/letsencrypt/options-ssl-nginx.conf 2>/dev/null
If nothing comes back, add a file that applies to every site. If a line exists, edit that one instead:
echo 'ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1:secp384r1;' \
| sudo tee /etc/nginx/conf.d/pq-tls.conf
sudo nginx -t && sudo systemctl reload nginx
Post-quantum key exchange needs TLS 1.3, so if you have an ssl_protocols line, make sure it includes TLSv1.3. Keeping prime256v1 in the list lets older clients that only support P-256 connect. On OpenSSL 3.0, nginx -t rejects the line, and the && leaves the running config alone.
Caddy
Caddy has its own TLS code and has used x25519mlkem768 by default since version 2.10, so it works on 24.04 as well. Install it from Caddy's own repository, because Ubuntu's package can be older. A minimal Caddyfile:
example.com {
reverse_proxy localhost:8080
}
The certificate stays classical
Keep a normal ECDSA certificate from Let's Encrypt (sudo certbot certificates shows the key type). Browsers don't accept post-quantum certificates yet. Chrome is backing a new format, Merkle Tree Certificates, and Let's Encrypt is aiming to issue them in production in 2027.
Verify
From your laptop, offer only the post-quantum group:
$(brew --prefix openssl@3)/bin/openssl s_client \
-connect example.com:443 -groups X25519MLKEM768 \
</dev/null 2>&1 | grep -iE "negotiated|alert"
Negotiated TLS1.3 group: X25519MLKEM768 means you're done. An alert means the server doesn't offer it yet. Run the same command with -groups prime256v1 to confirm older clients still get in. In Chrome, DevTools → Security shows the key exchange too.
Part 3: SSH
Your sessions are probably post-quantum already
OpenSSH has used a hybrid post-quantum key exchange by default since version 9.0. Check yours:
ssh -v user@your-server 2>&1 | grep "kex: algorithm"
mlkem768x25519-sha256 (both ends on 10.0+) and sntrup761x25519-sha512 (both on 9.0+) are both post-quantum. curve25519-sha256 means one end is older or a KexAlgorithms setting overrides the default.
Harden sshd
Use a drop-in file. sshd takes the first value it finds, so a 10- prefix wins over the 50-cloud-init.conf that Hetzner's image may create:
sudo tee /etc/ssh/sshd_config.d/10-hardening.conf <<'EOF'
PasswordAuthentication no
KbdInteractiveAuthentication no
PermitRootLogin no
AllowUsers youruser
EOF
sudo sshd -t && sudo systemctl restart ssh
Keep your current session open and test a new login from a second terminal before you close it.
Hide port 22 behind Tailscale
This is the biggest single improvement in this guide. Do it in this order so you can't lock yourself out:
-
Install Tailscale on the server, run
sudo tailscale up, and confirmssh user@<server-tailscale-name>works. -
In Hetzner Console, create a Cloud Firewall that allows only TCP 80 and 443 inbound, and apply it to the server. It's free, and anything without a rule is blocked.
-
Add the same rules in ufw on the server, with SSH allowed only on the Tailscale interface:
sudo ufw default deny incoming sudo ufw allow in on tailscale0 to any port 22 proto tcp sudo ufw allow 80,443/tcp sudo ufw enable -
In the Tailscale admin console, tag the server and replace the default allow-all rule with grants, so only your own devices can reach port 22.
Keep OpenSSH with your own key rather than switching to Tailscale SSH. Tailscale's tunnel is WireGuard, which can't add ML-KEM, so the OpenSSH key exchange inside the tunnel is the layer that stays post-quantum.
ML-DSA keys come later
Hybrid ML-DSA + Ed25519 login keys arrived in OpenSSH 10.6 (ssh-keygen -t mldsa44-ed25519), and both ends need it. Ubuntu 26.04 ships 10.2, so Ubuntu servers will have to wait. Ed25519 is fine until then, because an attacker would need a working quantum computer at the moment you log in.
Where things stand
Three things stay classical for now, whatever you do on your server:
- The TLS certificate, until browsers accept Merkle Tree Certificates (expected in 2027).
- SSH login keys on Ubuntu, until OpenSSH 10.6 reaches the distribution.
- The Tailscale tunnel, until Tailscale hands out pre-shared keys automatically, which it plans to do.
My own setup is halfway there. Visitors to artdaw.com already get post-quantum key exchange, thanks to [Cloudflare] in front. The server behind it is still on Ubuntu 24.04, so next on my list are the upgrade to 26.04, the nginx line, and moving SSH behind Tailscale.
If you run your own VPS, here's the checklist:
- [ ] Versions checked, and OpenSSL 3.5+ installed on your laptop
- [ ] Snapshot taken and the Hetzner web console tested
- [ ] Ubuntu 26.04 with OpenSSL 3.5, or Caddy 2.10+ in front
- [ ]
ssl_ecdh_curveincludesX25519MLKEM768 - [ ]
s_clientshowsX25519MLKEM768, and a classical curve still connects - [ ] SSH key exchange shows
mlkem768x25519orsntrup761x25519 - [ ] Password and root login turned off in sshd
- [ ] Port 22 closed in the Hetzner Cloud Firewall and ufw, SSH over Tailscale only
- [ ] ML-DSA SSH key, once both ends run OpenSSH 10.6
The first test takes ten seconds. Run it against anything you host.
Sources
- Ubuntu: OpenSSL versions in 24.04 and 26.04
- Ubuntu: OpenSSH in 24.04 and in 26.04
- Ubuntu: upgrades from 24.04 to 26.04.1 enabled
- Hetzner: backups and snapshots, web console, root password reset, Cloud Firewalls
- Caddy 2.10 release notes
- Google: quantum-safe HTTPS and Merkle Tree Certificates
- Let's Encrypt: a post-quantum future
- Cloudflare: post-quantum support by browser and to origins
- LWN: OpenSSH 10.6 released
- Tailscale: post-quantum cryptography and Tailscale SSH