PKI Workshop
Learn PKI fundamentals, build certificate chains hands-on, and explore PQC migration.Learning sandbox — private keys are stored in your browser and should not be used in production.
Why this matters: PKI is the trust infrastructure everything else in this curriculum assumes exists — certificate chains, revocation, and CA hierarchies are what make 'this key belongs to this identity' a claim anyone can verify.
Start here: Pick a private key source and a CSR profile, fill in the subject attributes, then press Generate CSR: the console shows the OpenSSL run and the resulting PEM request.
For your role
- Developer / Engineer
- Create a CSR, generate a root CA, sign the CSR, inspect the certificate and issue a CRL, then compare with Merkle Tree Certificates and walk the RFC 8555 ACME issuance with an ML-DSA key.
- Security Architect
- The chain comparison with Merkle Tree Certificates and the storage, bandwidth and CPU model for migrating a PKI to PQC are the two design inputs after the five-step basics.
- Researcher / Academic
- The ACME (RFC 8555) issuance flow with a real ML-DSA key and the PKI migration cost model are the parts to reproduce; the session artifacts panel keeps what each step produced.
- IT Ops / DevOps
- Issue, inspect and revoke in the first five steps, then model storage, bandwidth and CPU for your PKI under PQC: the certificate operations you run, with their new sizes.
What is PKI?
(PKI) is a framework of policies, hardware, software, and procedures for creating, managing, distributing, and revoking digital certificates. Defined by ITU-T and profiled for the internet in RFC 5280, PKI enables entities to establish trust through a hierarchy of (CAs) that vouch for the binding between a public key and an identity (not sourced in the Library).
- Certificate Authorities (CAs)
- Registration Authorities (RAs)
- End Entities (subscribers)
- Hierarchical (Root → Intermediate → EE)
- Bridge CA (cross-certification)
- Web of Trust (PGP model)
- X.509v3 certificates (RFC 5280)
- PKCS#10 format (RFC 2986)
- CMP enrollment (RFC 9810, obsoletes RFC 4210)
The Certificate Lifecycle
Every X.509 certificate follows a defined lifecycle from key generation through revocation. RFC 5280 Section 3 presents an architectural model, while RFC 6960 () and RFC 5280 Section 5 (s) define the revocation checking mechanisms that relying parties use to verify certificate validity in real time.
X.509 Certificate Structure
An X.509v3 certificate (RFC 5280 Section 4.1) contains three main parts: the TBSCertificate (to-be-signed data), the signature algorithm identifier, and the digital signature value. The TBSCertificate holds all the fields that get signed by the CA:
Digital Signatures in PKI
Certificate issuance and verification rely on as defined in RFC 5280 Section 4.1.1.2. The CA signs the TBSCertificate using its private key, and any relying party can verify the signature using the CA's public key from a trusted root store.
- Construct TBSCertificate (subject, key, extensions)
- Hash the TBSCertificate (SHA-256, SHA-384, etc.)
- Sign hash with CA private key
- Append signature algorithm OID + signature value
- Extract signature from certificate
- Hash the TBSCertificate independently
- Verify signature against CA public key
- Check validity period, extensions, revocation
Classical vs PQC Algorithms in PKI
Traditional PKI relies on and signatures, both vulnerable to on a cryptographically relevant quantum computer. NIST has standardized post-quantum replacements: (FIPS 204) for signatures and (FIPS 205) for stateless hash-based signatures.
Proven, widely deployed. Small signatures and keys: an RSA-2048 signature is 256 bytes; an ECDSA P-256 signature is 64 bytes (raw r and s) with a 65-byte uncompressed public key. Vulnerable to quantum computers running Shor's algorithm.
Quantum-resistant. ML-DSA-65: 3,309-byte signature and 1,952-byte public key (FIPS 204 Table 2). SLH-DSA-SHA2-128s: 7,856-byte signature and 32-byte public key (FIPS 205 Table 2). The rows are not at equal security levels, so compare the signature and the public key together; both are larger than the classical sizes.
A composite certificate puts classical + PQC keys and signatures under one composite OID. Only relying parties that understand that OID can validate it, so it is not backward compatible.
PQC Migration for PKI
Root CA certificates can have lifetimes of 20+ years. While data encryption is vulnerable to "" attacks, long-lived CAs are vulnerable to "forge later" attacks, where a cryptographically relevant quantum computer could forge signatures and issue rogue certificates. recommends beginning the transition to post-quantum algorithms immediately, with (NSA) setting requirements for national security systems only. In NSA's FAQ (version 2.2, October 2026), CNSA 2.0 algorithms are required in new acquisitions from 1 January 2027, equipment and services that cannot support them are phased out by 31 December 2030 absent an exception, and the algorithms are mandated by 31 December 2031 unless otherwise noted. NSA's earlier 2022 advisory anticipated a later 2033 date for niche equipment such as large PKI systems, so check NSA's current text for the class of system you run.
Key migration challenges include certificate size growth (ML-DSA-87 public keys are ~2,592 bytes), constrained device support, and maintaining cross-signed trust chains during the transition period. NIST SP 800-131A Rev 2 provides guidance on algorithm deprecation timelines.
Merkle Tree Certificates: Solving PQC Certificate Bloat
Post-quantum signatures are dramatically larger than their classical counterparts: signatures are 2,420 bytes compared to just 64 bytes for ECDSA P-256 — a 37× increase. A TLS server using ML-DSA-44 throughout sends its leaf and one intermediate certificate (two public keys and two certificate signatures) and signs the handshake once more in CertificateVerify. That is 9,884 bytes (~9.9 KB) of keys and signatures in every full handshake, which can break constrained clients and degrade performance. The figure grows with the algorithm and the chain length: the same chain needs 13,831 B with ML-DSA-65 and 19,065 B with ML-DSA-87.
Merkle Tree Certificates (MTCs), specified in draft-ietf-plants-merkle-tree-certs in the IETF PLANTS working group (it replaced draft-davidben-tls-merkle-tree-certs; latest version -07, 7 October 2026; still an Internet-Draft, not yet proposed for publication), offer an elegant solution: instead of signing each certificate individually, a Merkle Tree CA (MTCA) batches thousands of certificates as leaves in a , signs only the root hash, and distributes compact inclusion proofs (384–736 bytes in the draft's estimates) that let any relying party verify a certificate belongs to the signed batch. In landmark mode, the certificate carries no signatures at all: an inclusion proof to a landmark subtree, which the client already trusts through predistributed log information, takes their place. It is an optional size optimization that only works with an up-to-date client.
- 3 ML-DSA-44 signatures (intermediate cert, leaf cert, CertificateVerify) — 3 × 2,420 B = 7,260 B
- 2 public keys (leaf, intermediate) — 2 × 1,312 B = 2,624 B
- Total: 7,260 + 2,624 B, which gives 9,884 B (~9.9 KB) per handshake
- Leaf public key: 1,312 B
- CertificateVerify signature: 2,420 B
- Landmark inclusion proof: 736 B
- Total: 4,468 B (~4.5 KB) per handshake
Assumptions: ML-DSA-44 everywhere (FIPS 204: 1,312 B public key, 2,420 B signature); the server sends a leaf and one intermediate, not the root, whose key is already in the client's trust store; no Certificate Transparency SCTs; certificate names, extensions and other encoding overhead are not counted. A standalone MTC (no pre-synced landmark) also carries CA and cosigner signatures. The MTC Size Analysis tool uses a different model (it also counts the root key, SCTs and certificate metadata, but not the CertificateVerify signature), so its figures differ.
Tradeoff: MTC clients must periodically fetch transparency service updates (similar to CRLite). This trades per-handshake size for background data synchronization — a favorable tradeoff for high-traffic servers and constrained IoT devices.
Related Resources
Check off all sections and mark this reading done.
Related modules
In the Industry Landscape
- Cross-IndustryEnterprise PKI & X.509 certificates
- IT Industry / SoftwareWeb PKI & certificate authorities
- Aerospace / AviationBy protocol · Avionics & flight-system authentication
- Automotive / Connected VehiclesBy protocol · V2X message signing (IEEE 1609.2) · EV charging infrastructure (OCPP)
- Critical Infrastructure / EnergyBy protocol · Smart metering / AMI PKI · Distributed energy resources & EV charging (IEEE 2030.5 / OCPP)
- Education / ResearchBy protocol · Identity federation (SAML/eduroam)
- Finance & BankingBy protocol · Interbank payments & settlement (SWIFT/RTGS)
- Government & DefenseBy protocol · Federal PKI & document signing · PIV card credentials (federal smart-card identity)
- Healthcare / PharmaceuticalBy protocol · Medical-device firmware & authentication · Pharma supply chain (DSCSA/EPCIS)
- Internet of Things (IoT)By protocol · Device identity & provisioning
- Legal / Notary / eSignatureBy protocol · Qualified e-signatures (AdES) · EU digital identity wallets (eIDAS 2.0) · Qualified timestamping (RFC 3161)
- Rail / TransitBy protocol · Train control key management (ETCS) · Positive Train Control PKI
- Supply Chain / LogisticsBy protocol · Port & vessel identity systems · Electronic bills of lading & trade docs · Customs declarations & single windows
- TelecommunicationsBy protocol · Network function & gNB certificates
- Water / WastewaterBy protocol · Water metering & sensor networks
- Government Identity & Travel DocumentsBy protocol · ePassports and machine-readable travel documents (eMRTD, ICAO Doc 9303) · National eID cards and PIV smart-card credentials · European Digital Identity Wallet (EUDI Wallet) · +1 more
- Semiconductors / Secure ElementsBy protocol · TPM 2.0 chips (platform keys and attestation)
Next step
Practice it: PKI WorkshopPKI Workshop is the hands-on version of this module: the same ideas, run in your browser.
Production Tool Capabilities & Verification ChecklistPKI Architects & Certificate Lifecycle Engineers
Capabilities to require in your production tools:
- Root, Intermediate, and Issuing CA support for `ML-DSA-44/65/87` (RFC 9881) and `SLH-DSA` (RFC 9909) key generation and X.509 v3 certificate issuance.
- CRL and OCSP responder scalability for multi-kilobyte PQC signatures and high-density revocation lists.
- Automated Certificate Lifecycle Management (CLM) discovery and renewal across short-lived and long-lived PQC trust chains.
How to evaluate in your environment
Issue a 3-tier PQC certificate chain (`ML-DSA-87` Root -> `ML-DSA-65` Intermediate -> `ML-DSA-44` Leaf) in a non-production CA and run `openssl verify` and OCSP checks.
Production evidence to collect
Decoded X.509 certificate chain (`openssl x509 -text`), OCSP response verification log, and HSM key-generation audit trail.
Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.
Record evidence for your environment
Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.
Evidence missing. 0 of 3 requirements have a reference or scope rationale.
Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.