Most quantum-vulnerable keys in an organisation do not belong to people: they belong to workloads, devices, pipelines and integrations that nobody will notice until a migration breaks them. Certificates for mTLS, SSH host and user keys, JWT signing keys, code signing keys and device identities are created by automation, embedded in configuration and often owned by no one. That makes non-human identities (NHIs) both the bulk of post-quantum work and the part most likely to be missed. This guide is for NHI programme owners, PKI teams and platform engineers. It covers how to find machine credentials that use RSA and elliptic curve cryptography, what the standards and protocols support as of October 2026, how to prioritise and sequence migration, and how to measure it. General post-quantum strategy is covered in the Post-Quantum Cryptography Migration Guide and identity-wide readiness in the Post-Quantum Readiness Guide; this page does not repeat them.
Key takeaways
- NIST's 2035 date applies to machine keys too. The draft NIST IR 8547 proposes disallowing RSA, ECDSA, EdDSA and ECDH after 2035, with 112-bit strengths deprecated after 2030, and the NCSC asks for discovery by 2028 and completion by 2035.
- Key exchange can move now, signatures mostly cannot. Hybrid ML-KEM is standardised for TLS 1.3 and default in OpenSSH, while post-quantum signatures in certificates, SSH and tokens are standardised but thinly supported.
- Short-lived credentials are an advantage. Workloads that receive certificates and tokens automatically can change algorithm by changing the issuer; static keys and embedded trust anchors are where migration stalls.
- Inventory by credential, not by server. The unit of work is each key, its algorithm, its issuer, its relying parties and its owner.
- Size and verification support are the real constraints. ML-DSA public keys and signatures are many times larger than ECDSA ones, and every verifier must understand the new algorithm before an issuer can switch.
Why NHIs carry most of the migration
A person typically has a handful of public-key credentials, such as a passkey or smart card. A single Kubernetes cluster can issue thousands of workload certificates a day. Machine credentials are also the ones with the longest verification tails: a firmware signature checked by a device for fifteen years, a code signing chain checked by every installed copy of a product, or a JWKS endpoint trusted by dozens of partner APIs. Each of these needs every verifier updated before the signer can switch. The NCSC notes that confidentiality protections can be migrated soonest, while certificate-based PKI and IoT and ICS protocols will follow more slowly. For NHI teams that means two parallel tracks: switch key exchange where platforms allow, and prepare signature migration through inventory, agility and supplier pressure.
The standards and timelines, as of October 2026
| Item | Status (checked 24 October 2026) | What it means for machine credentials |
|---|---|---|
| FIPS 203 ML-KEM, FIPS 204 ML-DSA, FIPS 205 SLH-DSA | Final, published 13 August 2024 | Approved algorithms for key establishment (ML-KEM-512, 768, 1024) and signatures (ML-DSA-44, 65, 87; SLH-DSA) |
| NIST IR 8547, Transition to Post-Quantum Cryptography Standards | Initial public draft of 12 November 2024; comments closed 10 January 2025; no final version published | Proposed: 112-bit RSA and ECC deprecated after 2030; all RSA, ECDSA, EdDSA, ECDH and finite field DH disallowed after 2035. Treat the dates as proposed, but plan to them |
| NIST SP 800-227, Recommendations for Key-Encapsulation Mechanisms | Final, 18 September 2025 | Guidance on using KEMs such as ML-KEM securely |
| NIST SP 800-208 (LMS, XMSS) | Final, October 2020 | Stateful hash-based signatures; IR 8547 notes they are not intended for general use, but they suit firmware signing |
| HQC and FN-DSA (Falcon) | HQC selected 11 March 2025; Falcon standardisation under way | Not yet usable for production NHI credentials |
| UK NCSC migration timelines | Published 20 March 2025 | By 2028: goals, full discovery, initial plan. By 2031: highest-priority migrations. By 2035: migration complete |
| NSA CNSA 2.0 | In force for US national security systems | ML-KEM-1024, ML-DSA-87, LMS or XMSS for software and firmware signing; new national security system acquisitions to comply from 1 January 2027; 2035 goal for all |
IR 8547 permits hybrid approaches during the transition: the SP 800-56C composite technique combines a classical and a post-quantum shared secret, and dual signatures are acceptable provided at least one component algorithm is NIST-approved. It also states NIST does not expect to transition away from symmetric standards such as AES as part of this migration, so HMAC-signed tokens, symmetric API keys and secrets encrypted with AES are not the priority.
Machine credential types and their migration path
| Credential | Quantum-vulnerable part | Post-quantum option today | Readiness |
|---|---|---|---|
| TLS and mTLS between services | ECDHE key exchange; RSA or ECDSA certificates | Hybrid key exchange X25519MLKEM768 (code point 0x11EC), SecP256r1MLKEM768, SecP384r1MLKEM1024, standardised in RFC 10024 (August 2026) | Key exchange: deploy where libraries support it. Certificates: ML-DSA profile exists (RFC 9881) but client and CA support is limited |
| Workload certificates (service mesh, SPIFFE SVIDs, internal CA) | RSA or ECDSA issuing CA and leaf keys | ML-DSA certificates under RFC 9881, once mesh proxies and libraries verify them | Pilot only. Short leaf lifetimes make the eventual switch fast |
| SSH host and user keys | Key exchange; Ed25519, ECDSA or RSA keys | mlkem768x25519-sha256 key exchange, default since OpenSSH 10.0 (April 2025) | Key exchange: ready. Signatures: OpenSSH has no post-quantum signature support yet |
| JWT and OAuth signing keys (IdP, STS, API gateways) | RS256, ES256, EdDSA signatures | ML-DSA-44, 65 and 87 for JOSE and COSE with key type AKP, RFC 9964 (May 2026) | Standard exists; IdP and library support is emerging. Verifiers must accept the new alg before issuers switch |
| Code and container signing | RSA or ECDSA signatures that must verify for years | ML-DSA, SLH-DSA, or LMS and XMSS for firmware; cloud KMS ML-DSA keys (for example AWS KMS ML_DSA_44, ML_DSA_65, ML_DSA_87) | Signing keys can be created now; verification in operating systems and registries lags |
| Device and IoT identity | Factory-provisioned RSA or ECC keys and roots | Usually hardware replacement or firmware update with a new root | Slowest; plan by device lifetime |
| Symmetric secrets and HMAC tokens | Not materially affected | Keep 128-bit or stronger keys | No migration required beyond normal hygiene |
For deeper treatment of each credential type see the Machine Identity, PKI and Certificate Lifecycle Guide, the SSH Key Management Guide and the Code Signing Security Guide.
Building a machine credential crypto inventory
A post-quantum inventory for NHIs is an extension of the NHI inventory you should already hold, with algorithm fields added. The NCSC recommends combining top-down discovery (core services and architecture) with bottom-up discovery (low-level cryptographic use), and covering cloud, on-premises, network equipment, endpoints and IoT.
- Certificates: export every issued certificate from internal CAs, cloud certificate services and service mesh CAs, and scan endpoints for presented certificates. Record public key algorithm and size, signature algorithm, issuer, lifetime and the workload it identifies.
- Token signing keys: pull JWKS from every IdP, authorisation server and STS. The
kty,algandcrvvalues show the algorithm directly. Record every relying party that validates them. - SSH: list host keys and authorised user keys by type, and log negotiated key exchange algorithms on servers to see which clients still negotiate classical-only exchange.
- KMS and HSM keys: list asymmetric keys by key spec in each cloud KMS and HSM partition. Note that in AWS KMS the key spec is fixed at creation, so an ML-DSA key is a new key, not a setting change.
- Code and libraries: search source and dependency manifests for cryptographic libraries and hard-coded algorithm names. A cryptographic bill of materials (CBOM) records the result per application.
- Third parties: list which vendors hold or validate your machine credentials, and ask for their roadmap. The NCSC explicitly asks organisations to check that managed service providers are doing the same assessment.
For each credential, record an owner. Unowned keys are the ones that will block a cut-over. See the NHI Ownership Guide and the Cryptographic Key Management Guide.
Prioritising and choosing a strategy
The NCSC lists five strategies for each system: migrate in place, re-platform, retire the service, run it to end of life, or tolerate the risk. For machine credentials, two questions decide the order.
- Does it protect long-lived secrets in transit? Service traffic carrying credentials, keys or long-lived personal data is exposed to capture now and decryption later. Move this traffic to hybrid ML-KEM key exchange first; it is the one change that removes a present-day risk.
- How long must its signatures be trusted, and how many verifiers are there? Firmware roots and code signing chains verified for a decade come next in planning, because their verifier base takes longest to update. Short-lived workload certificates and access tokens come later, because they can switch quickly once verifiers are ready.
| Priority | Machine credential | Action now |
|---|---|---|
| 1 | Service-to-service TLS carrying secrets or sensitive data; SSH to production | Enable hybrid ML-KEM key exchange; alert on classical-only negotiation |
| 2 | Device roots of trust, firmware and code signing | Choose LMS, XMSS or ML-DSA; procure hardware that supports them; plan dual-signing |
| 3 | Internal CAs and service mesh CAs | Stand up a parallel ML-DSA CA in test; confirm proxies and libraries verify RFC 9881 certificates |
| 4 | Token signing at IdPs and STS | Confirm every relying party reads keys from JWKS and can accept a new alg; add ML-DSA once IdPs support it |
| 5 | Static long-lived keys (SSH user keys, API client certificates) | Replace with short-lived issued credentials first; migration then follows the issuer |
Small and large organisations
Smaller organisations mostly depend on cloud providers, SaaS vendors and operating system updates. Their work is inventory, enabling hybrid key exchange when offered, removing static keys and writing post-quantum requirements into contracts. Large organisations and anyone running their own PKI, devices or IdP must also build parallel CAs, run interoperability tests and fund hardware refresh. The NCSC warns that costs could be significant and recommends budgeting for both preparation and migration.
Engineering constraints to test early
- Size: RFC 9881 sets ML-DSA public keys at 1,312, 1,952 and 2,592 bytes for ML-DSA-44, 65 and 87, against 32 to 65 bytes for typical elliptic curve keys. Signatures are several kilobytes. Test HTTP header limits for JWTs, certificate chain sizes in TLS handshakes, and storage in constrained devices.
- Pure versus pre-hash: RFC 9881 allows only pure ML-DSA in certificates and RFC 9964 does not specify HashML-DSA for JOSE. Signing services that only accept a digest need the external mu approach described in RFC 9881 Appendix D, so check what your HSM or KMS supports.
- Key formats: both RFCs use a seed as the private key format (RFC 9964 requires a 32-byte seed for JWK). Key backup, escrow and export tools must handle this.
- Fallback: the NCSC asks organisations to confirm that systems actually use post-quantum algorithms rather than silently falling back. Log negotiated groups and algorithms, do not infer them from configuration.
- Hybrid during transition: hybrid key exchange keeps classical security if a new algorithm or implementation fails. For signatures, dual signing or parallel chains let verifiers move one at a time.
Phased migration plan
- Assign ownership. Put post-quantum migration for machine credentials inside the NHI or PKI programme with a named lead, not a separate crypto project.
- Extend the NHI inventory. Add algorithm, key size, issuer, verifiers and expiry to every certificate, key and token signing record. Target full discovery by 2028 in line with the NCSC.
- Reduce static credentials. Move workloads to automatically issued, short-lived certificates and tokens, so later migration is an issuer change. See the Crypto-Agility Guide.
- Enable hybrid key exchange in a pilot ring. Turn on
X25519MLKEM768for internal TLS andmlkem768x25519-sha256for SSH on a subset of services. Watch handshake failures, latency and middleboxes that drop larger ClientHello messages. - Build parallel signing infrastructure in test. Create an ML-DSA CA and test token signing keys, issue to test workloads and record which verifiers fail.
- Roll out by verifier readiness. Switch an issuer only when every relying party in the inventory has passed verification tests.
- Keep rollback simple. During hybrid and dual-signature phases, rollback is reverting configuration to the classical group or chain. Keep classical keys valid until the new path has run cleanly for an agreed period.
- Retire classical algorithms. Set retirement criteria (for example, no classical-only negotiations for 90 days) and disable classical options, ahead of the 2035 date.
Detection and measurement
Collect negotiated TLS groups from load balancers, proxies and service mesh telemetry, SSH key exchange algorithms from server logs, and algorithm fields from CA issuance logs and KMS key inventories. The NCSC suggests metrics such as how many clients use post-quantum algorithms and which do not.
- Inventory coverage: percentage of known machine credentials with algorithm, owner and verifier list recorded.
- Hybrid key exchange share: percentage of internal TLS and SSH sessions negotiating a hybrid ML-KEM group.
- Classical-only clients: count of distinct workloads still negotiating classical-only exchange, trending to zero.
- Static key count: long-lived machine keys that cannot be reissued automatically.
- Verifier readiness: percentage of relying parties that pass ML-DSA verification tests per issuer.
- Supplier roadmap coverage: percentage of critical vendors with a documented post-quantum roadmap.
Common failure patterns
- Scanning only internet-facing endpoints: external TLS scans miss service mesh certificates, SSH keys, JWKS keys and embedded device roots, which is where most machine credentials live.
- Switching an issuer before its verifiers: a token or certificate signed with ML-DSA breaks every relying party that cannot parse it. Migration order is verifiers first.
- Assuming configuration equals use: a hybrid group enabled on the server is not used if clients or middleboxes do not offer it. Measure negotiated algorithms.
- Leaving static keys in place: long-lived SSH user keys and client certificates have to be found and replaced by hand, and they are often unowned.
- Buying hardware without a roadmap: HSMs, devices and appliances bought now may still be in service in 2035. Make post-quantum algorithm support a procurement requirement.
- Losing control of signing keys during the transition: parallel CAs and dual signing double the keys to protect. The GitHub code signing certificate theft shows how a machine account's token can expose signing material; new post-quantum keys need the same protection as the old ones.
Where it sits in frameworks
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev. 5 | SC-12, SC-13, SC-17, SC-8 | Key establishment and management, approved cryptography, PKI certificates, protected transmission |
| NIST CSF 2.0 | PR.AA-01, PR.DS-02, ID.AM-07, GV.SC-05 | Managed machine credentials, data in transit, data and metadata inventories, supplier requirements |
| NIST | FIPS 203, 204, 205; draft IR 8547; SP 800-227; SP 800-208 | Algorithms and proposed transition dates |
| IETF | RFC 10024, RFC 9881, RFC 9964 | Hybrid TLS key exchange, ML-DSA in X.509, ML-DSA in JOSE and COSE |
| UK NCSC | PQC migration timelines | 2028, 2031 and 2035 milestones |
Practitioner checklist
- Name an owner for post-quantum migration of machine credentials inside the NHI or PKI programme.
- Add algorithm, issuer, verifier and owner fields to every certificate, SSH key, KMS key and token signing key record.
- Complete machine credential discovery by 2028, including service mesh, SSH, JWKS and devices.
- Enable hybrid ML-KEM key exchange for internal TLS and SSH where supported, and log negotiated algorithms.
- Replace static machine keys with short-lived, automatically issued credentials.
- Stand up a test ML-DSA CA and token signing key and run verifier compatibility tests.
- Write post-quantum support and roadmaps into HSM, device, IdP and SaaS procurement.
- Track the final version of NIST IR 8547 and adjust plans if dates change.
Standards and references
- NIST: IR 8547 Transition to Post-Quantum Cryptography Standards (initial public draft)
- NIST: Post-Quantum Cryptography project (FIPS 203, 204 and 205)
- UK NCSC: Timelines for migration to post-quantum cryptography
- IETF: RFC 10024 Post-quantum hybrid ECDHE-MLKEM key agreement for TLS 1.3
- IETF: RFC 9881 ML-DSA in X.509 certificates
- IETF: RFC 9964 ML-DSA for JOSE and COSE
- OpenSSH: Post-quantum cryptography
- NSA: CNSA 2.0 FAQ
Related NHI Mgmt Group resources: Post-Quantum Cryptography Migration Guide · Post-Quantum Readiness Guide · Machine Identity, PKI and Certificate Lifecycle Guide · Crypto-Agility Guide · Cryptographic Key Management Guide