Library · |journey⟩ Migration and compliance

The post-quantum migration playbook

Governance, inventory, risk ranking, quick wins, platform upgrades, vendors, PKI, testing and evidence, step by step.

Regulators in the United States, the European Union and the United Kingdom now expect the same sequence of work. Know what cryptography you use, plan the migration, move the highest-priority systems first, and finish by the mid-2030s.[2][3][5] What to do on Monday morning is less clear. This article lays out one workable programme for a quantum-safe migration, in thirteen steps from governance to metrics.

The steps overlap in practice. They are listed in the order in which each one depends on the one before. If you read only one section, read the one on inventory, because every later decision rests on it. The product loop that the scanner supports (identify, list, fix, re-check) is described on the journey page, and the table below shows where each part of it fits.

The programme in one view

A bank or large enterprise typically runs this work as three overlapping phases. Discovery builds the inventory and the ranking. Mitigation covers the quick wins and the platform upgrades. Transition covers application changes, PKI, vendors and the final removal of classical-only algorithms. The UK NCSC timeline follows the same shape: discovery and a plan by 2028, highest-priority migrations by 2031, everything by 2035.[3]

The thirteen steps, with the scanner command that supports each where one applies
StepOutputWhere qsc helps
1. Governance and ownershipNamed executive owner, charter, budget lineNone; this is organisational
2. ScopeList of business units, environments and data classesNone; informs what you point the scanner at
3. InventoryCryptographic inventory (CBOM), vendor answersqsc scan with --target, --cloud, --format cbom
4. Risk rankingRanked list of systems and dataSeverity and readiness labels in the report
5. Quick winsHybrid TLS and SSH, AES-256, no SHA-1 or 3DESqsc fix, qsc fix --apply
6. Platform upgradesLibraries, runtimes and appliances on supporting versionsAdvisories, the readiness tracker
7. Application changesCode that no longer hard-codes algorithmsFindings with file and line
8. PKI planPlan for CAs, certificates and trust anchorsCertificate findings
9. Vendors and procurementQuestionnaire answers, contract clausesDependency and endpoint findings as evidence
10. Testing and rollbackInteroperability and performance results, rollback planqsc scan --target after each change
11. Re-checks and CI gatesGate that blocks new weak cryptography--baseline, --fail-on new
12. Evidence for auditorsDated reports, CBOM, decision loghtml, markdown, sarif and cbom output
13. Programme metricsA small dashboard reviewed quarterlyqsc diff, qsc report

Step by step

  1. Governance and ownership

    Name one accountable executive, usually the CISO or the chief technology officer, and give the programme a charter, a budget line and a standing place on the risk committee agenda. A migration that lives in a single security team stalls the first time it needs a change to a payments application owned by someone else.

    Appoint a technical lead for cryptography, and a named owner for each business-critical system who is responsible for that system's part of the plan. Record the decision to proceed, the target dates and the accepted risks in a log. You will need that log for step 12.

  2. Scope

    Decide what is in. The default is everything the organisation runs or depends on: production and non-production, on-premises and cloud, mainframes, customer channels, internal tools and third-party services that handle your data. Subsidiaries and acquired businesses belong here too, because a regulator will look at the group.

    Write down what you exclude and why. Where a supervisor sets its own scope, as the US federal inventory rules do for agencies, follow it. For everyone else, a wide scope with a staged scan is cheaper than discovering a forgotten system in year four.

  3. Inventory

    Build the inventory from several sources, because no single method sees everything. The article on where cryptography hides lists ten levels. In practice, use these sources.

    • Source code and scripts. Scan repositories for API calls to RSA, ECDSA, Diffie-Hellman and weak hashes. Include COBOL, PL/I and other mainframe source, once exported from the library manager.
    • Dependencies. Read manifests and lockfiles, and software bills of materials, to see which cryptographic libraries each application ships and at which version.
    • Configuration. Web servers, load balancers, VPN gateways, SSH daemons, message brokers and infrastructure as code define protocols and cipher suites that never appear in application code.
    • Certificates and keys. Find them in repositories, key stores and certificate management systems. Record algorithm, key size, signature algorithm and expiry.
    • Endpoints. Probe the TLS and SSH servers you operate and record what each negotiates. This shows what is really running, whatever the configuration files say.
    • Cloud. List the keys in each cloud key management service and the TLS policies on gateways and load balancers.

    Store the result as a cryptographic bill of materials (CBOM). CycloneDX 1.6 added a way to describe cryptographic assets, so the inventory can be exchanged between tools and shown to a regulator in a standard format.[6] The article on crypto-agility and the CBOM covers the format.

    Add a vendor questionnaire for everything you cannot scan: card systems, core-banking packages, HSM firmware, network appliances and software-as-a-service. Ask each vendor which public-key algorithms the product uses, which post-quantum algorithms it supports or plans to support, in which release, and what the upgrade path is. Treat an unanswered question as a finding in its own right.

    With the scanner, one run covers several of these sources, and the inventory format is selected on the command line.

    One discovery run
    qsc scan . --target api.bank.example:443 --target ssh://bastion:22 --cloud aws --format html,sarif,cbom

    Know the limits. The scanner reads files and probes the hosts you name, so it does not replace interviews for things such as payment HSM host commands, which the coverage matrix lists as not covered. Record those gaps in the inventory as open items.

  4. Risk ranking

    You cannot migrate everything at once, so rank. Three questions place a system on the list.

    • Data lifetime. How many years must the data stay confidential or the signature stay valid? Mortgage files, customer identity records, board papers and long-term contracts last decades. Session tokens last minutes.
    • Exposure. Can an adversary record the traffic or copy the data today? Internet-facing TLS, inter-bank links and backups sent to third parties can be recorded now and decrypted later.
    • Criticality. What happens to the business if the system must be changed, or cannot be trusted? Payment authorisation and the root of an internal PKI rank high.

    Mosca's inequality gives the timing test. Let x be how long the data must stay secret, y how long the migration will take, and z how long until a quantum computer can break the current cryptography. If x + y is greater than z, the data is already at risk.[1] Nobody knows z, so run the test with a range of values and not a single date.

    Q-day 2038
    2026
    2031
    2036
    2041
    2046
    migrationdata encrypted at the end of migration must stay secret

    Exposed. Data encrypted with RSA or ECC until 2032 must stay secret until 2042, but becomes readable in 2038. That is 4 years of exposure, and it starts with traffic recorded today.

    Try it: change the shelf life of the data and the migration time, and see which values of z leave you exposed.

    Confidentiality and authenticity rank differently. Recorded encrypted data can be attacked later, so key exchange and encrypted archives come first. A forged signature needs a quantum computer at the time of the attack, so signatures matter most where they must remain valid for a long time: code signing, firmware, legal documents and certificate authorities. The article on harvest now, decrypt later works through the cases.

  5. Quick wins

    Some changes are cheap, safe and useful whatever the quantum timeline. Do them in the first months.

    • Hybrid key exchange in TLS and SSH. Where a server or client already supports it, turn it on. The TLS group X25519MLKEM768 combines classical X25519 with ML-KEM-768 from FIPS 203.[7] OpenSSH 10.0 made the hybrid mlkem768x25519-sha256 its default key exchange in April 2025. Support in your own stack depends on versions, so check the readiness tracker. The article on hybrid key exchange explains the design.
    • AES-256 for new symmetric encryption. Grover's algorithm reduces the effective strength of a symmetric key, and 256-bit keys leave a wide margin. CNSA 2.0 requires AES-256.[4]
    • Retire SHA-1. NIST announced in December 2022 that SHA-1 should be phased out by 31 December 2030. Collisions have been demonstrated since 2017, so this is overdue whatever happens to quantum computers.
    • Retire three-key Triple DES for encryption. NIST disallowed it after 2023.[10] Card and payment systems are the usual holdouts, so expect this to need planning with the payments team and not a configuration change.

    For web servers, SSH daemons and load balancers, the scanner produces safe configuration patches along with the remediation plan.

    Plan, then apply
    qsc fix .            # writes qsc-fixes/remediation-plan.md
    qsc fix . --apply    # applies the safe configuration patches

    Review the patches in a test environment before you apply them in production.

  6. Platform upgrades

    Many systems cannot use post-quantum algorithms until the platform underneath them is upgraded. As of mid-2026, OpenSSL 3.5, Go 1.24 and recent JDK and .NET releases include ML-KEM, and some also include ML-DSA. A Java service that cannot move past an older JDK cannot negotiate the same groups as one on a current release.

    Build a list from the inventory that pairs each component with the first version that supports what you need. Group the upgrades by owner and release train, and attach them to the planned maintenance windows. Operating system, runtime and library upgrades follow release cycles that you do not control, so put them in the plan early.

    Some items depend on providers and standards, not on you. Public web PKI does not issue post-quantum certificates yet, and JOSE and JWT signature profiles are still drafts. Mark these as waiting, with an owner who checks each quarter, and move on.

  7. Application changes

    Application changes are the slowest work, and they are cheaper if each system is made crypto-agile once. Replace hard-coded algorithm names with configuration, wrap cryptographic calls in one internal module, and widen any storage that assumes today's key and signature sizes. An ML-DSA-65 signature is 3,309 bytes[8] and an RSA-2048 signature is 256 bytes, so a column sized for the second will truncate the first or reject it.

    Do this work in the order the ranking gives. Handle code that exchanges keys with external parties first, then code that signs long-lived records, then everything else. See crypto-agility and the CBOM for the design patterns and the anti-patterns to remove.

  8. PKI plan

    Certificate authorities are slow to change and widely trusted, so plan them separately. For each internal CA, record its algorithm, its remaining lifetime, the systems that trust it, and the devices that cannot be updated. Decide where a hybrid or post-quantum root is needed, and where classical roots can stay until the 2030s deadlines.

    Public certificates follow the web PKI and the browsers' timeline, so your control over them is limited. Internal PKI is yours. ML-DSA in X.509 is being standardised in the IETF and several products support it, but check your CA product and your devices before committing to a date. Code-signing and firmware keys deserve their own entry, because CNSA 2.0 sets the earliest dates for software and firmware signing, using LMS or XMSS.[4][9]

    Automate certificate issuance and rotation before any migration. A programme that changes every certificate by hand will not finish.

  9. Vendors and procurement

    Add contract language now, so that renewals made in 2027 do not lock in a product that cannot be upgraded. Useful clauses are short.

    • The supplier states which public-key algorithms and protocol versions the product uses, and updates the statement on each major release.
    • The supplier commits to support FIPS 203, FIPS 204 and, where relevant, FIPS 205 and NIST SP 800-208 by a stated release or date.
    • The product allows algorithms and key sizes to be set by configuration, with no rebuild from source.
    • The supplier provides a CBOM or equivalent list of cryptographic components on request.
    • The supplier gives notice of end of support for any algorithm it plans to remove.

    Keep a register of vendors that cannot or will not answer, with the system affected and the date by which you will decide to replace the product. Do not accept vendor claims about timelines without a release number or a contract commitment.

  10. Testing and rollback

    Post-quantum algorithms change message sizes and, sometimes, behaviour. Test three things before every rollout.

    • Interoperability. Every client that talks to the changed server must still connect. Include old mobile apps, partner systems, batch jobs and monitoring probes.
    • Performance. Measure handshake time and CPU on representative hardware. ML-KEM is fast, but larger keys and certificates add bytes to each handshake.
    • Middleboxes. Firewalls, intrusion-prevention systems and TLS-inspecting proxies sometimes mishandle larger handshake messages or unknown groups. Test the real network path, and the server on its own is not enough.

    Roll out in stages: a test environment, a small share of production, then everything, with a documented way back at each stage. For key exchange, a hybrid group offered alongside classical groups gives a natural rollback. After each change, probe the endpoint again and keep the output as evidence.

  11. Re-checks and CI gates

    An inventory that is accurate in March is wrong by September. Keep it true with two controls. A scheduled scan, weekly or monthly, compares the estate against the last baseline. A gate in the build pipeline stops new weak cryptography from entering at all.

    Re-check against a baseline
    qsc scan . --baseline qsc-reports/qsc-report.json --fail-on new

    The report shows what was fixed, what is new and what is still open. The --fail-on new option makes the command fail only when new findings appear, so existing debt does not block every build while you work it down. Start with that setting, and tighten to a severity threshold once the backlog is small.

  12. Evidence for auditors

    Collect evidence as you go. A supervisor or auditor will usually ask for the inventory, the date of its last refresh, the ranking method, the plan with dates and owners, and proof that completed items are complete. Keep dated copies of each scan report and CBOM, the remediation plans, the baselines, the decision log from step 1, the vendor register and the test results. The article on regulations and deadlines lists what each regime asks for.

  13. Programme metrics

    Report a small set of numbers each quarter to the owner from step 1. Share of in-scope systems inventoried. Open findings by severity and by readiness label. Share of internet-facing endpoints negotiating a hybrid group. Count of vendors with a written answer. Count of classical-only algorithms remaining in each priority tier. Mean age of open findings. Choose the definitions once and keep them fixed, so that the trend means something.

How long each step takes

Durations depend on the size of the estate, so treat these as planning ranges and replace them with your own numbers after a pilot. Governance and scoping take weeks. A first inventory of code, configuration and endpoints takes weeks to a few months, and the vendor questionnaire runs longer because suppliers answer slowly. Quick wins take months. Platform upgrades, PKI and application changes take years, and they set the end date of the programme.

That asymmetry is the reason to start now. If the long steps need several years, then the NCSC's 2031 date for the highest-priority migrations means that design work should already be under way.[3] The calculation for your own data is the one in the risk-ranking step.

What to do now

  1. Name the executive owner and book the first steering meeting.
  2. Run qsc scan against your ten most important repositories and your internet-facing hosts, and keep the CBOM.
  3. Send the vendor questionnaire to your top twenty suppliers.
  4. Switch on hybrid key exchange on one internet-facing service in a test environment, and measure it.
  5. Add --baseline and --fail-on new to one pipeline.
  6. Put the PCI DSS requirement 12.3.3 review, which asks you to document and review cipher suites and protocols at least every 12 months, on the same calendar as your scans.[11]

Free licence keys last 30 days and renew free, so a pilot costs nothing. Get one from the key page.

Related reading: Crypto-agility and the cryptographic bill of materials, Regulations and deadlines, Quantum-safe banking and Where cryptography hides in an organisation.

Sources

  1. Michele Mosca. Cybersecurity in an era with quantum computers: will we be ready?. 2015. https://eprint.iacr.org/2015/1075
  2. NIST. NIST IR 8547 (initial public draft): Transition to Post-Quantum Cryptography Standards. 2024-11-12. https://csrc.nist.gov/pubs/ir/8547/ipd
  3. UK National Cyber Security Centre. Timelines for migration to post-quantum cryptography. 2025-03-20. https://www.ncsc.gov.uk/guidance/pqc-migration-timelines
  4. NSA. Announcing the Commercial National Security Algorithm Suite 2.0. 2022-09. https://media.defense.gov/2022/Sep/07/2003071834/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS_.PDF
  5. NIS Cooperation Group. Coordinated Implementation Roadmap for the transition to post-quantum cryptography. 2025-06. https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography
  6. OWASP CycloneDX. Cryptographic Bill of Materials (CBOM) in CycloneDX 1.6. 2024-04. https://cyclonedx.org/capabilities/cbom/
  7. NIST. FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard. 2024-08-13. https://csrc.nist.gov/pubs/fips/203/final
  8. NIST. FIPS 204: Module-Lattice-Based Digital Signature Standard. 2024-08-13. https://csrc.nist.gov/pubs/fips/204/final
  9. NIST. SP 800-208: Recommendation for Stateful Hash-Based Signature Schemes. 2020-10. https://csrc.nist.gov/pubs/sp/800/208/final
  10. NIST. SP 800-131A Rev. 2: Transitioning the Use of Cryptographic Algorithms and Key Lengths. 2019-03.
  11. PCI Security Standards Council. PCI DSS v4.0, requirement 12.3.3 (cryptographic cipher suites and protocols).