Back to Articles

Post-Quantum Cryptography: Preparing Your PKI

Contents

The Quantum Threat

The risk is specific, not general. Shor's algorithm, run on a large-enough quantum computer, can factor integers and compute discrete logarithms efficiently — which breaks RSA, Diffie-Hellman, and elliptic-curve cryptography (ECC). These are precisely the algorithms that underpin key exchange and digital signatures across the internet and every enterprise PKI.

What is not broken: symmetric cryptography (AES) is not vulnerable to Shor's algorithm — the practical mitigation there is simply larger keys. The exposure is asymmetric cryptography: the key exchange that protects a TLS session, and the signatures that authenticate certificates. That is the part a quantum computer breaks.

Framing that keeps the scope sane: a "cryptographically relevant quantum computer" (CRQC) — one big and reliable enough to break real RSA/ECC keys — is still some years away, and estimates of "when" move. The reason to act now is not that it is imminent; it is that the migration takes years, and the data being protected today may still be sensitive when the machine arrives. The prudent posture is "prepare now, deploy as the standards and your risk require," not panic.[4]

Harvest Now, Decrypt Later

The most under-appreciated part of the quantum risk is that it is retroactive. An adversary does not need the quantum computer today to steal your data today; it can record encrypted traffic now and decrypt it later, once the machine exists. This is called "harvest now, decrypt later." It changes the migration calculus in two ways:

  • Long-lived data needs protection first. Anything that must remain confidential for many years — government records, health data, legal documents, long-lived secrets — is already exposed to a future quantum decryptor, even though the attack "hasn't happened yet."
  • You cannot wait for the hardware to exist to start. By the time the CRQC is real, the data harvested over the preceding years is already gone. The migration has to lead the threat.

The Algorithms: ML-KEM and ML-DSA

NIST has standardized the post-quantum replacements[1], drawn from the lattice-based families that survived the selection process:

AlgorithmRoleReplaces
ML-KEM (Kyber)Key encapsulation / key exchangeRSA key exchange, ECDH, DH
ML-DSA (Dilithium)Digital signaturesRSA signatures, ECDSA
SLH-DSA (SPHINCS+)Digital signatures (conservative, larger)RSA/ECDSA, where a hash-based backup is preferred

The practical migration shape is hybrid: a certificate or handshake that combines a classical algorithm with a post-quantum one, so security holds even if one of the two proves weak. Pure-PQC deployments are the eventual goal; hybrid is the bridge that lets you deploy today without betting everything on a young algorithm.

A Migration Plan for Your PKI

A realistic PKI migration is a program, not a weekend cutover. The sequence that has worked for early movers:

  1. Inventory and build crypto agility. You cannot migrate what you cannot see. Inventory every certificate, key exchange, and signing operation — and start removing hard-coded algorithms so you can swap them later.
  2. Prioritize by data lifetime. Long-lived secrets and long-lived data confidentiality come first, driven by the harvest-now threat, not by convenience.
  3. Deploy hybrid certificates in the lab. Stand up PQC in a non-production PKI, issue hybrid certificates, and validate that everything that must consume them actually works.
  4. Pilot in production at the edges. Move low-risk, high-learning-value systems first; expand as tooling and confidence grow.

A Worked Example: PQC Test Certificates in a Lab PKI

The fastest way to get hands-on is to issue a hybrid (classical + PQC) certificate with OpenSSL 3.x[3] and the OpenSSL OQS provider[2], which adds the post-quantum algorithms. The workflow:

  1. Install and load the OQS provider. The oqsprovider module adds ML-KEM and ML-DSA (and more) to OpenSSL's openssl CLI.
  2. Generate a PQC (or hybrid) key. For example, an ML-KEM key for key exchange, or an ML-DSA key for signing:
# Generate an ML-DSA-65 signing key using the OQS provider
openssl genpkey -provider oqsprovider -provider default \
  -algorithm mldsa65 -out ml_dsa65_key.pem
  1. Issue a self-signed certificate from it. The result is a certificate whose signature is post-quantum:
# Create a self-signed certificate with the ML-DSA key
openssl req -new -x509 -key ml_dsa65_key.pem \
  -subj "/CN=lab-pqc-ca" -days 365 \
  -provider oqsprovider -provider default \
  -out ml_dsa65_cert.pem

# Inspect it — the signature algorithm should be post-quantum
openssl x509 -in ml_dsa65_cert.pem -noout -text | head -n 20
  1. For key exchange, repeat with ML-KEM and use it in a TLS test, then — critically — test it against your actual services. The algorithms themselves are rarely what breaks. What breaks is everything sitting in the path that was written back when RSA and ECDSA were the only options a certificate could use: load balancers, reverse proxies, network appliances, and monitoring agents that do not recognise the new signature algorithm and have no idea what to do with a certificate carrying it.

Rule of Thumb: Build the cryptographic inventory and crypto agility first, then migrate by protocol, data lifetime, and vendor support. Hybrid key establishment can reduce transition risk where the protocol defines and validates the combination, but it adds implementation and review complexity and is not a universal first step. Use the migration profile specified for the application and test interoperability before production.

The Inventory Deliverable

The first migration artifact is not a new certificate. It is a cryptographic dependency register that shows where algorithms are used, what protects long-lived data, and which vendor or team controls each change.

RecordWhy it matters
Protocol and endpointIdentifies TLS, VPN, SSH, signing, key exchange, and embedded uses that need different migration paths.
Algorithm, key size, and librarySeparates a certificate reissue from an application or firmware dependency.
Data confidentiality lifetimePrioritizes traffic and archives that must remain secret long enough to face harvest-now-decrypt-later risk.
Owner and vendor supportCreates a person responsible for testing and exposes products whose roadmap controls the schedule.
Agility testRecords whether the algorithm can be changed in configuration, by upgrade, or only by replacing the product.

First milestone: account for the high-value and long-confidentiality systems before buying PQC products. Unknown dependencies create more migration risk than a known algorithm with a planned replacement path.

Caveats

Three realities that keep PQC migrations honest:

  1. Key and signature sizes grow. ML-KEM and ML-DSA keys and signatures are larger than their classical equivalents — some substantially. Budget for larger handshakes and certificates, especially on constrained devices.
  2. The standards are young. These are the first-generation standards, and there is already discussion of successors. This is exactly why hybrid mode exists[5]; do not deploy pure-PQC for anything you cannot re-issue quickly.
  3. Tooling and FIPS lag. A published standard is not yet a deployable one. The crypto libraries your applications call have to implement the new algorithms; the HSMs — the tamper-resistant hardware modules that hold your private keys and perform signing inside themselves, so the key never exists in ordinary server memory — have to support them in firmware; and the resulting modules have to be re-validated under the FIPS cryptographic-module program, the US government certification that many regulated buyers require before a module may be used in production. Each of those steps trails the algorithm standard by months to years, and if you are bound by FIPS you cannot ship ahead of the certification. Map your dependencies' PQC readiness before you promise a timeline.

The bottom line is the same shape as every other migration this site covers: the technical primitive is available and works in the lab today; the work is the inventory, the prioritization, and the disciplined roll-out.


References

  1. NIST — "Post-Quantum Cryptography" standardization and the FIPS 203/204/205 standards (ML-KEM, ML-DSA, SLH-DSA). NIST CSRC, current.
  2. Open Quantum Safe — "OQS Provider" for OpenSSL: adding post-quantum algorithms to OpenSSL 3.x. Open Quantum Safe Project, current.
  3. OpenSSL — "OpenSSL 3.x" provider documentation and the genpkey/req interfaces. OpenSSL Documentation, current.
  4. NSA/CISA — "Post-Quantum Cryptography" and the commercial National Security System transition guidance. NSA Cybersecurity, current.
  5. IETF — "Hybrid key exchange" and PQC-in-TLS drafts: the hybrid handshake approach. IETF, current.
← Back to Articles ← Previous: Confidential Computing Next: Entra ID Hybrid Identity →