Introduction
When people say "move to post-quantum cryptography," it is surprisingly unclear where to start.
In this article, I first lay out how to approach post-quantum migration in general terms, and then, in the second half, show what happened when I applied that approach to SSH (Secure Shell), Tailscale, and TLS (Transport Layer Security) in my home lab.
The conclusion comes down to two points.
First, the work proceeds in this order: inventory, classification and prioritisation, migration, verification, and managing what remains.
Second, I do not call something "done" until I have observed that the algorithm in question was actually the one selected.
1. Why Act Now
As quantum computers become practical, some of the public-key cryptography in wide use today will, in principle, become breakable.
The targets are key exchange and signatures that rely on RSA (the public-key algorithm named after its three inventors, Rivest, Shamir, and Adleman) and elliptic-curve cryptography.
Symmetric cryptography that protects the payload itself (such as AES, the Advanced Encryption Standard) is considered relatively less affected by quantum computing.
The problem here is an attack pattern called "harvest now, decrypt later."
The attacker stores encrypted data that cannot be decrypted yet, and attempts to decrypt it later, once a sufficiently capable quantum computer becomes available.
At present, no quantum computer exists that can practically break widely used public-key cryptography.
Even so, preparation for this attack needs to start "now."
That is because data leaks not when the migration finishes, but at the moment the encrypted communication is recorded.
In other words, migrating key exchange is not a problem that can wait "until quantum computers are finished."
Whether the migration is urgent depends on how many years the data needs to stay secret, and on which algorithms currently protect the communications carrying it.
The longer data has to remain secret on a given path, the stronger the reason to migrate that path sooner.
Signatures are a slightly different story.
A signature is a mechanism for verifying that something "was legitimate at that point in time," and there is room to replace the certificate and signature schemes themselves with new ones later.
Key exchange and signatures do not carry the same urgency of migration.
With that difference in urgency in mind, the next section looks at the overall picture of what we are migrating to.
2. What Post-Quantum Cryptography Is
Post-quantum cryptography (PQC) is the collective name for cryptographic algorithms based on mathematical problems believed to be hard even for quantum computers.
NIST (the National Institute of Standards and Technology) ran the selection process, and in August 2024 the first set of standards was finalised as FIPS (Federal Information Processing Standards).
Three algorithms sit at the centre.
| Algorithm | Role | Standard |
|---|---|---|
| ML-KEM | Key exchange (key encapsulation) | FIPS 203 |
| ML-DSA | Signatures | FIPS 204 |
| SLH-DSA | Signatures | FIPS 205 |
Their full names are as follows.
- ML-KEM — Module-Lattice-Based Key-Encapsulation Mechanism. A key encapsulation mechanism based on module lattices
- ML-DSA — Module-Lattice-Based Digital Signature Algorithm. A digital signature based on module lattices
- SLH-DSA — Stateless Hash-Based Digital Signature Algorithm. A stateless digital signature based on hash functions
The main actor for key exchange is ML-KEM, which has three parameter sets: ML-KEM-512, ML-KEM-768, and ML-KEM-1024.
The one that appears in the hands-on part later is the middle one, ML-KEM-768.
For signatures, two algorithms were provided: the lattice-based ML-DSA and the hash-based SLH-DSA.
Having two algorithms resting on different foundations lets you choose according to the use case and preconditions of the signature.
The pragmatic answer for the transition period is the hybrid approach.
It combines a classical algorithm (for example, the elliptic-curve X25519) with a PQC algorithm (ML-KEM), so that even if one of them is broken, the other still keeps things secure.
It is easier to roll out while the other side's support is still catching up, and it also acts as insurance in case an unknown problem is found on the PQC side.
The names mlkem768x25519-sha256 and X25519MLKEM768 that appear in the hands-on part are implementation examples of this hybrid approach.
3. How to Approach It
So how do you actually proceed?
Here I organise the work into five steps, building on the ideas behind "PQC Crypto Inventory Lab," an inventory tool I have published.
This tool is a learning tool that collects clues about cryptographic usage from specified local files and from a single TLS endpoint that I have permission to examine.
It does not certify that a system is "quantum-safe."
That line itself is the starting point of this approach.

Figure: The flow of the five steps
Step 1: Inventory — Surface What Is There, with Evidence
The first job is to identify "where, and which cryptography, is being used."
But instead of listing things off the top of your head, you record each item together with its evidence.
What this tool picks up includes, for example, calls to certain Python cryptographic APIs, known configuration keys, public keys, X.509 certificates, and the presence of private keys.
For each detection, the file location and line number, the detection method, the algorithm found, the classification, the reason for the classification, and a confidence level are recorded.
The value of an inventory is that you can trace back later "why it was judged that way."
At the same time, admit the limits of the inventory up front.
- It can only pick up static clues. Just because a name appears in a configuration does not mean it will be selected at runtime
- Languages and formats it does not support, and folders excluded from the scan, are out of scope. Algorithms chosen dynamically cannot be fully captured either
- Zero detections is not proof that no cryptography is in use
An inventory is not a conclusion. It is a map showing where to check next.
Step 2: Classification and Prioritisation
Sort the items you found into three groups from a quantum-risk perspective.
This tool's classifications are as follows.
| Classification | Meaning | What to do next |
|---|---|---|
| QUANTUM_VULNERABLE | A classical public-key algorithm that needs further investigation (RSA, X25519, etc.) | Check the use case and how long the data it protects must be kept, and consider migration targets |
| SAFE | A limited label about the algorithm on its own (e.g. AES-256, SHA-384) | Separately check key length, mode, and operational management |
| UNKNOWN | Not enough evidence to reach a conclusion | Check why it could not be classified |
There are two caveats.
The first is that SAFE is only a narrow label.
It means nothing more than that there is no known efficient attack against the algorithm itself; it does not guarantee the parameters, the implementation, the protocol, key management, or the safety of the deployment.
The second is that UNKNOWN does not mean "safe to leave for later."
For example, the hash function SHA-256 is classified as UNKNOWN under this tool's limited rules, because those rules do not assign it SAFE — but that does not mean SHA-256 is immediately dangerous.
Conversely, SHA-1 has known collision weaknesses, separate from the quantum classification, so depending on its use it may be something to check first.
You have to read the reasons, not just the classification names.
Once classified, assign priorities.
In this tool's reports, the items to check are divided into P1 to P3.
- P1 — Items to check first. For example, how SHA-1 is used, and how private keys are stored
- P2 — The use cases of quantum-vulnerable algorithms, data retention periods, and migration dependencies
- P3 — Checks of parameters and the like
The axes for setting priorities are the data retention period discussed in section 1, and exposure — whether something can be reached from outside.
Among the paths carrying data that needs to stay secret for a long time, prioritise the ones that are easily reachable from outside.
Note that these P1–P3 levels, and the scoring described later, are this project's own heuristics (rules of thumb).
They are neither NIST evaluations nor migration deadlines.
Step 3: Migration — Upgrade, Choose, Prioritise
The migration work itself is mostly unglamorous.
- Upgrade the libraries and software you use to versions that support PQC
- During the transition, choose hybrid algorithms
- Prioritise the PQC side in the configuration (to avoid the state where something is supported but never selected)
This is where the idea of crypto agility comes in.
It refers to the property of being able to swap cryptographic algorithms later, when the need arises, without major rework.
This tool checks the evidence for 10 items and scores how easy the algorithms are to swap.
The items include things like: whether the algorithm is hard-coded at the call site; whether there is a common gateway for exchanging algorithms; whether keys are centrally managed; whether certificate issuance and distribution, renewal, and revocation are automated; whether keys can be rotated periodically; whether the design depends on a cryptographic library; whether communication algorithms can be negotiated safely; whether the algorithm can be chosen in configuration; and whether update and rollback preparations exist.
The scoring rests on three kinds of basis.
- STATIC_EVIDENCE — A clue was found in the files
- DECLARED — The operator declared "we documented it" or "we tested it." The tool does not verify this independently
- UNKNOWN — Not enough evidence. It scores 0 points, but that is not a judgement that "the capability is absent"
In the bundled sample, there were 5 detections and the score was 25/100.
This is not a percentage of safety; it is a score for "how visible the readiness for change is."
Rewriting declarations to raise the score does not improve the design or the operations.
Use the score as an entry point for checking the actual systems behind the UNKNOWN items.
Behind this idea of "measuring maturity with scope and evidence kept separate" is a framework called the Crypto-Agility Maturity Model (CAMM).
CAMM expresses the maturity of crypto-agility readiness in levels.
However, this tool's score is not converted into a CAMM level.
What it takes from CAMM is the stance: do not let the total score walk around on its own, and record the scope of the judgement, the criteria, and the evidence separately.
Step 4: Verification — Call It "Done" Only Once You Have Observed It
After migrating, verify.
The distinction to hold onto here is the following four states.
- In the configuration — The algorithm's name appears in the list of supported algorithms
- Updated — The software was changed to a new version
- Connected — The communication went through
- Observed — The output confirmed which algorithm was actually selected
You can only make a claim about an algorithm once you reach the last state, "observed."
Just being "in the configuration" does not mean you are communicating with that algorithm.
And just because you "updated" does not mean the part that is actually running got any newer.
This distinction comes up again and again in the hands-on part.
The same applies to observing TLS: what you get is "what could be observed in this one connection."
When comparing results from another day or another environment, you need to look at them under matched observation conditions.
Step 5: Managing Remaining Issues — Leave What Is Not Done, Explicitly
Finally, record which parts are not yet addressed.
The typical example is signatures and certificates.
Even when key exchange has been made hybrid, host authentication and certificate signatures often remain on classical algorithms.
Managing remaining issues means writing down, per target, "what has not been verified," instead of covering it up with a single word like "done."
Also, the inventory does not end after one pass.
Installing new software or changing configurations adds new targets.
You can also use it to compare the static evidence before and after a change.
It fits reality better to treat this as a cycle that returns from step 5 to step 1.
4. In Practice: Trying It in My Home Lab
From here on, this is a record of applying this approach to my home lab.
The targets are three: SSH, the VPN (Virtual Private Network) service Tailscale, and TLS 1.3. The verification date is December 5, 2026.
The scanner itself was not modified; starting from the inventory, I checked which algorithms are actually selected on real connections.
SSH: The Key Exchange Could Be Observed
This is a connection from a Mac mini (OpenSSH 10.5p1) to an Intel NUC (OpenSSH 10.2p1).
Before the change, on a normal connection, even though a hybrid algorithm was in the list of supported algorithms, the one actually selected was ecdh-sha2-nistp256.
It was a case where the gap between "in the configuration" and "actually being used" showed up exactly as described.
First, I tried a single connection restricted to mlkem768x25519-sha256, and confirmed it completed normally with host key verification still in place.
Then I added the following single line, only to the target-host configuration on the Mac mini side.
KexAlgorithms ^mlkem768x25519-sha256 The leading "^" is a directive that adds this algorithm to the head of the default list; the other algorithms remain.
I backed up the previous configuration locally.
The server configuration on the NUC side was not changed.
After the change, on a normal connection, the debug output confirmed that mlkem768x25519-sha256 was selected.
The result was the same on a normal connection after a reboot.
In the language of step 4, this target reached the "observed" state.
However, host authentication is still Ed25519, and the symmetric cipher is still AES-128-GCM.
What was verified is the hybridisation of key exchange — not the post-quantum migration of signatures.
Tailscale: The Conditions Are Met
According to Tailscale's official documentation, on tunnels between endpoints running 1.106 or later, an ephemeral ML-KEM-768 is added to the standard WireGuard processing.
No special configuration is needed on the user's side; if the version conditions are met, the specification says it applies.
Both the Windows machine and the Mac mini were updated to 1.106.4.
A connectivity check (TSMP ping) from the Mac mini to Windows also succeeded.
During the update, there was a moment where the step 4 distinction mattered.
On the Mac mini, the package had updated the files first, so the command line showed 1.106.4 while the VPN extension actually running was still the old 1.104.5.
Reopening the app did not switch it over; only after rebooting the OS did the displayed version and the running version line up.
Here too, "updated" and "the thing that is running got newer" were different things.
After an update, the reliable approach is to check not only the displayed version but also the running backend and the OS-side extension.
However, I did not directly observe the VPN's key exchange algorithm itself.
All that can be said is that both ends met the specification's conditions, and that connectivity was confirmed.
Also, the MacBook Air is still on the App Store version 1.104.7; at the time, the store showed no update, so it is on hold.
For mobile devices, all I have is the report that they were updated; I have not verified them on the actual devices.
TLS 1.3: Controlled Tests Only
TLS 1.3 was not applied to any real service; I only ran controlled tests in a local test environment on the Mac mini.
The environment is Node.js 26.13.0 / OpenSSL 3.5.9.
- When both sides support hybrid — X25519MLKEM768 was selected, and certificate verification and the data round trip succeeded
- When the server only accepts hybrid — a client with only classical algorithms was rejected
- When the server allows both — a client with only classical algorithms connected successfully with X25519
The third point is the important one.
When the server also permits classical algorithms, a client that only supports classical algorithms will end up using a classical algorithm for the connection.
Here too, "supports it" and "is always used" were different things.
The certificate used was a classical ECDSA one (a signature scheme using elliptic curves).
No changes were made to the production services running in Docker.
Reference Values: The Processing Time of the Primitive Itself
Separate from the connection story, there is also a record of measuring the processing time of ML-KEM-768 itself.
In a standalone measurement on Windows using the Go 1.27.0 standard library, the medians were 50.017µs for key generation, 39.999µs for encapsulation, and 55.125µs for decapsulation.
µs stands for microseconds.
These are reference values for a single cryptographic primitive; they do not indicate VPN or TLS latency or production performance.
They are placed here only as a rough sense of "the weight of the primitive itself."
Summary of the Hands-On Part
| Target | What was changed | What was observed | Unverified / unchanged |
|---|---|---|---|
| SSH (Mac mini → Intel NUC) | Added KexAlgorithms ^mlkem768x25519-sha256 to the target-host configuration on the client side | mlkem768x25519-sha256 was selected on a normal connection and on a connection after reboot | Host authentication (signatures) remains Ed25519 |
| Tailscale (Windows, Mac mini) | Updated both ends to 1.106.4 | TSMP ping connectivity. On the Mac mini, after an OS reboot the running extension was also 1.106.4 | The VPN's key exchange algorithm itself was not observed |
| TLS 1.3 (local tests) | Varied the conditions on test server and client | Behaviour under the three conditions (success, rejection, fallback) | Application to real services. The certificate remains ECDSA |
5. Caveats
Let me organise what this article can and cannot claim.
The following three things can be said.
- For the target SSH connection, it was observed that the hybrid key exchange is selected
- For Tailscale, both ends met the version conditions of the official specification, and connectivity was confirmed
- For TLS 1.3, behaviour under three conditions was confirmed in a test environment
What could not be confirmed, and the scope of this record, are as follows.
- Post-quantum migration of signatures. Host authentication and certificates remain on classical algorithms
- Enforcement across all connections. SSH keeps a configuration with fallback, and TLS also falls back to classical algorithms under permissive settings
- An actual measurement of the VPN's key exchange. A TSMP ping confirms connectivity; it is not a record of the key exchange
- The inventory's classifications, priorities, and scores are this project's own rules of thumb, not NIST evaluations
- This record is a check of limited targets, not a security assessment of the whole lab
6. Summary
Working on post-quantum migration involves, before the work of "swapping algorithms," the work of "knowing, with evidence, where and what is being used."
Proceed in the order of inventory, classification and prioritisation, migration, verification, and managing what remains — and in verification, treat something as addressed only once you have observed the algorithm actually selected.
That line became clearest through this exercise.
How far the home lab got differs per target.
SSH reached the observation of key exchange, Tailscale reached meeting the conditions, and TLS reached testing.
The remaining issues are: directly observing Tailscale's key exchange algorithm, checking the remaining devices such as the MacBook Air, deciding whether to apply TLS to real services, and taking inventory of signatures and certificates.
References
- NIST FIPS 203 (ML-KEM) — https://csrc.nist.gov/pubs/fips/203/final
- NIST FIPS 204 (ML-DSA) — https://csrc.nist.gov/pubs/fips/204/final
- NIST FIPS 205 (SLH-DSA) — https://csrc.nist.gov/pubs/fips/205/final
- Tailscale's official blog (explaining the PQC key exchange) — https://tailscale.com/blog/pqc-key-exchange
- PQC Crypto Inventory Lab — https://github.com/moruku36/pqc-crypto-inventory-lab
- NIST CSWP 39, "Considerations for Achieving Crypto Agility" (background material on crypto agility) — https://csrc.nist.gov/pubs/cswp/39/upd1/considerations-for-achieving-crypto-agility/final
