Post-Quantum Cryptography on a VPS: Hybrid TLS and SSH
No full migration needed. OpenSSL 3.5 and OpenSSH 10.0 ship hybrid X25519 + ML-KEM-768 key exchange natively. Here is how to configure Nginx, Caddy and SSH, verify it, and handle bigger handshakes.
1. Two Locks on the Front Door: Why "Hybrid" Is the Safe Bet
Say someone hands you a new lock that claims to be unpickable for a hundred years, but it has only been tested in a lab for a few years. Would you rip out the lock you have trusted for two decades? Most people would install both, so a burglar has to defeat both to get in. That is the whole intuition behind hybrid key exchange.
In protocol terms, the old lock is X25519, an elliptic-curve key exchange with over a decade of field testing but, in theory, vulnerable to a future large quantum computer. The new lock is ML-KEM-768, the NIST-standardized post-quantum key encapsulation mechanism: quantum-resistant, but young, with far less accumulated cryptanalysis and implementation experience. Each produces a shared secret, and the two are combined to derive the session key. If either one holds, the session stays safe.
Why act now? The "harvest now, decrypt later" threat and the NIST standards have their own articles in this series, so one sentence will do: traffic recorded today may be readable in ten years. This piece answers a more practical question: you have a VPS, so what can you do today?
The answer is easier than you might expect. For TLS and SSH, the two channels you use most, mainstream software already supports hybrid schemes natively. Usually you just upgrade, check your configuration, and verify the outcome.
2. Browsers and CDNs Are Already Ahead of You
Picture the internet as a highway. The cars (browsers) already have new tires, and the service stations (CDNs) stock the new parts. Only the last-mile corner shop, your origin server, is still running old equipment. This is not hyperbole: Chrome has sent an X25519MLKEM768 key share by default since version 131, other major browsers have followed, and CDNs such as Cloudflare enabled it at the edge long ago. A meaningful share of HTTPS traffic is already a post-quantum hybrid handshake.
The standard has settled too. The ECDHE-MLKEM hybrid design for TLS 1.3 has been published as RFC 10024, and X25519MLKEM768 is the most widely used combination in it. That is literally the name you will see in the handshake.
There is a gap that is easy to miss, though. The hop from the user to the CDN is hybrid-protected, but whether the hop from the CDN back to your VPS is protected depends on your origin. If the origin only speaks classical curves, that hop becomes the weakest link in the chain. Upgrading your own server is the only way to close it.
Remember one set of numbers; it matters in chapter five. A classic X25519 key share is 32 bytes. The X25519MLKEM768 client share is a 1184-byte ML-KEM-768 public key plus a 32-byte X25519 public key, 1216 bytes in total. The server replies with a 1088-byte ciphertext plus a 32-byte X25519 key, 1120 bytes.
3. TLS in Practice: Nginx and Caddy After OpenSSL 3.5
Adding a dish to a restaurant menu does not require rebuilding the kitchen; the chef just needs to know the recipe and the menu needs to list it. TLS works the same way. OpenSSL 3.5 implements ML-KEM natively, so the chef knows the dish. What remains is the menu: the list of key exchange groups your server is willing to negotiate. OpenSSL 3.5 is a long-term support release, and on it X25519MLKEM768 is enabled by default on both client and server, so in many setups an upgrade is all it takes.
First, confirm which OpenSSL your software actually links against. Run openssl version for the system library and nginx -V to see what Nginx was built with. Distribution packages can lag a major version or two, and official Nginx binaries sometimes bundle their own, so do not skip this step.
For Nginx, put the hybrid group first in the ssl_ecdh_curve directive and keep classical curves behind it as a fallback, along the lines of X25519MLKEM768:X25519:prime256v1. Test the config, then reload. Never list the hybrid group alone, or older clients that cannot speak it will fail the handshake outright.
Caddy is even easier. It builds on the Go standard library, whose TLS stack negotiates X25519MLKEM768 by default since Go 1.24, so a Caddy built with a recent Go usually needs no configuration. If you want explicit control, the curves option in the tls directive sets the group order.
How do you prove it works? Two ways. First, use OpenSSL as the client: run openssl s_client -connect yourdomain:443 -groups X25519MLKEM768, and the Negotiated TLS1.3 group line should read X25519MLKEM768. If it says X25519, the server fell back. Second, open the Security panel in a recent Chrome DevTools; the Key Exchange entry under Connection names the negotiated group.
4. SSH in Practice: From OpenSSH 9.9 to the 10.0 Default
Logging in over SSH is like passing a key through a safe: you and the server first agree, in public, on a temporary key only the two of you know, then use it to encrypt the whole session. That agreement step is the key exchange, and it is exactly where the quantum threat lands first.
OpenSSH 9.9 introduced mlkem768x25519-sha256 as a second post-quantum key agreement alongside the existing one. In version 10.0, released in April 2025, it became the default, and the project describes it as no weaker than the classic curve25519-sha256. The project has also said that from 10.1 the client warns when a server offers no post-quantum algorithm, so anyone still connecting to old servers will soon be nudged.
Checking takes three steps. One: ssh -V shows the version, on both client and server. Two: ssh -Q kex lists the key exchange algorithms your build supports, and mlkem768x25519-sha256 should appear. Three: connect once with ssh -vv your-server and look for the kex: algorithm line in the debug output to confirm what was negotiated.
If your server runs OpenSSH 9.9 or later but older than 10.0, put mlkem768x25519-sha256 at the front of KexAlgorithms in sshd_config and keep curve25519-sha256 as a fallback. Validate with sshd -t, then reload. Keep one logged-in session open until a fresh window connects successfully, so you cannot lock yourself out.
5. The Price of a Bigger Handshake: MTU, Performance and Fallback
Think of the handshake as mail. It used to be a postcard; now it is a fat envelope. The numbers from chapter two show the key share alone takes 1216 bytes in the ClientHello. With the other extensions, it often exceeds what a single TCP segment can carry on a typical 1500-byte Ethernet MTU, so it is split across two packets.
On the vast majority of networks nobody notices. TCP typically starts with an initial congestion window of 10 segments, so the extra kilobyte or two does not cost an additional round trip, and it has no effect on later requests over the same connection. The ML-KEM computation itself is cheap, well below the cost of an RSA signature on a modern CPU. What deserves attention is the occasional legacy middlebox that assumes the ClientHello always fits in one packet and chokes on a split one, showing up as a stalled handshake or a reset connection.
Start debugging by measuring path MTU. On Linux, run ping -M do -s 1472 target to probe; if it passes, the path carries a standard 1500 bytes. If some segment has a smaller MTU, as with tunnels or PPPoE links, check that MSS clamping is configured correctly.
On compatibility there is one rule: hybrid groups first, classical groups behind them. Browsers send both hybrid and classical key shares, so a client that does not know the hybrid group falls back to X25519 naturally, provided the server has not stripped the classical curves. The same goes for SSH: keep curve25519-sha256 so you do not break older automation scripts and legacy devices.
6. Back to Skyline Connect: What Kind of Provider Makes This Easy
Every step above, whether upgrading OpenSSL, rebuilding Nginx or editing sshd_config, shares one precondition: you need root on the server. Managed platforms often pin crypto library versions and protocol suites, leaving you to wait if you want to try a new algorithm. At Skyline Connect, customers have full root access to their VPS, so when to upgrade OpenSSH and OpenSSL, and how to configure them, is entirely your call.
Verification also depends on network quality. Skyline Connect runs two nodes, Singapore SG1 and Tokyo TY8. Run the same configuration in both and you can compare hybrid handshake timing over different backbone paths directly. The nodes connect straight to Tier 1 and Tier 2 backbones including NTT, KDDI, SoftBank, IIJ, PCCW, Lumen and Telstra. Shorter paths with fewer detours make it less likely that the extra kilobyte or two meets a quirky middlebox.
A bigger handshake has a quieter implication too: every connection setup is heavier than before, and attacks such as Botnet floods and Raw UDP Flooding have to be stopped before they ever reach the application. Skyline Connect includes hardware-level ASIC DDoS protection by default, co-developed with the National University of Singapore School of Computing. Each unit handles 1.2Tbps and 200 million PPS and identifies and drops attack traffic within 40ms, leaving the compute for real users' handshakes. Storage is all NVMe SSD, bandwidth is billed on what you actually use, and billing is transparent. Specs are on the products page, and node and maintenance updates are posted in the platform announcements.
Post-quantum migration will not have a starting gun. It is more like replacing old pipes: whoever swaps them first is spared the leaks later. Moving TLS and SSH, your two thickest pipes, to hybrid costs one upgrade and one verification. A server that lets you act whenever you like, on a network clean enough to trust, is the most practical foundation for it.