← PKI playground

// pki playground

A Quantum-Safe PKI in Your Browser

This playground runs a real public key infrastructure in your browser: key ceremony, certificate request, issuance, path validation and revocation. You can issue classical and quantum-safe certificates, inspect and download them, and send them to clients with different capabilities. Add failure cases and an attacker's view, including the day a quantum computer breaks classical signatures.

What a PKI does

If you receive a public key, you don't know whom it belongs to. A public key infrastructure solves this: a certification authority confirms with its signature that a key belongs to a name. Relying parties then only need to trust a few trust anchors, the root certificates.

  • Certification authority (CA)Signs certificates. The root stays offline, an intermediate CA does the day-to-day issuing.
  • Registration authority (RA)Checks requests, for example whether someone really controls the domain.
  • SubscriberHere a server: it generates its own key pair and requests a certificate for its name.
  • Relying partyBrowser, app or device: validates the chain up to a root in its own trust store and decides on the connection.

Post-quantum cryptography changes the algorithms in the key and the signature, not the logic of validation. The new signatures are much larger, though, and protection only begins once relying parties reject classical chains. You can try both below.

Internal and public certificates

The playground distinguishes two worlds that move toward quantum-safe algorithms at different speeds. Every profile is labeled accordingly.

Private PKI (internal)Web PKI (public)
Who decides on trustThe organization itself. It distributes its root, for example through device management.The root programs of browser and operating system vendors with their root stores.
Algorithms allowed todayFree choice. ML-DSA in X.509 is standardized in RFC 9881, and Chrome validates it in private hierarchies starting with version 150.Only RSA and ECDSA under the CA/Browser Forum's Baseline Requirements.
TransparencyNo public logs. An internal issuance log that cannot be altered after the fact takes on that role.Certificate Transparency is mandatory: Chrome requires SCTs from at least two logs.
Server certificate lifetimeSet by the operator.At most 200 days since March 15, 2026, 100 days from March 15, 2027, 47 days from March 15, 2029.
Path to quantum-safe certificatesDirect: ML-DSA, SLH-DSA or composite signatures in X.509, once every relying system supports them.Via Merkle Tree Certificates. Chrome plans a separate root store just for them starting in the third quarter of 2027.

The lab

Choose whether to build an internal or a public PKI, and pick a profile. Steps 01 to 05 build on each other; from step 06 on, deep dives work on their own. All certificates are real and can be downloaded as PEM.

Profile
Muster GmbH root CA
offline, key in an HSMML‑DSA‑65
DNS
muster.example
Issuance log
replaces public logs
Issuing CA
does the day-to-day issuingML‑DSA‑65
Registration authority
internal ACME server
Revocation list (CRL)
for CA and server certificates
Server
portal.muster.exampleML‑DSA‑65
Legacy device
classical only
Current client
classical and PQC
Strict client
quantum-safe only
  1. 1 Key ceremony
  2. 2 Request
  3. 3 Domain validation
  4. 4 Issuance
  5. 5 Handshake
  6. 6 Result

Start takes you step by step through the PKI of the selected profile: key ceremony, request, domain validation, issuance, handshake and result. Each step really runs and shows its actual values. Next moves on, Back goes to the previous step. All details are below.

// step 01

Key ceremony

The root CA generates its key pair and signs its own certificate. It then issues the certificate of the intermediate CA that does the day-to-day work. The root stays offline.
// step 02

Request and issue a certificate

The server generates its own key pair and sends only a request containing the public key. The self-signature on the request proves it holds the matching private key.

Run the key ceremony first.

// step 03

Connection setup

Server and client run a real TLS 1.3 handshake with hybrid key exchange (X25519MLKEM768). The server sends its certificate and the intermediate's; the client knows the root from its trust store. The server also signs the handshake (CertificateVerify). Three clients with different capabilities validate the same chain.

Issue a server certificate first.

// step 04

What validation catches

Here the CA deliberately issues faulty certificates, and the clients validate them as before. Each case fails at exactly the step RFC 5280 provides for it.

Build a PKI above first.

// step 05

Attacker's view

Mallory sits between the server and the clients. She sees everything in transit, including the certificates, which are public anyway. What she lacks are the private keys. Here you can see what she tries anyway and when a quantum computer would help her.
// step 06

Revocation and lifetime

A stolen key can be misused until the certificate expires or the revocation reaches the relying party, whichever comes first. How long that takes depends on the lifetime and on the client's behavior.
Pre-distributed revocation data (e.g., CRLite)24 hours
Online check, the answer arrives24 hours
Soft-fail, attacker blocks the check150 days
No revocation check150 days
Exposure window = min(notAfter, effective revocation) − compromise. Assumption: revocation takes effect 24 hours after the compromise, the Baseline Requirements deadline for compromised keys. If it never arrives, the entire remaining lifetime counts.
// step 07

Merkle Tree Certificates

For the public web, Chrome plans a different route: instead of signing every certificate individually, the CA adds it to an append-only log. What gets signed is the state of the log.
  1. The CA appends the certificate as an entry to its issuance log. The entry contains names, validity and extensions, but only a hash of the public key.
  2. The CA and an independent mirror cosign subtrees of the log with ML-DSA-44.
  3. Browsers receive certified subtrees, the landmarks, ahead of time over their update channel. In the handshake, an inclusion proof of SHA-256 hashes is then enough.
  4. Clients without current landmarks get the standalone certificate with the cosignatures.
For comparison: a conventional X.509 chain with ML-DSA-44 carries five signatures and two keys on the public web, 14,724 bytes in total. With a landmark, CertificateVerify, the server key and the proof remain, about 4,468 bytes.
Limits: MTC requires clients to have current landmarks; without an update channel, only the larger standalone certificate remains. The certificates are valid for days only, so issuance and renewal must be fully automated. The format may still change before the RFC.
// step 08

The three clocks of a root

How long a new root is usable depends on three deadlines: the expiry date in the certificate, the root programs' maximum term and the end of classical signature algorithms. The earliest one counts.
Algorithm
Planning horizon: 2035. Usable from about 2029, so about 6 years of actual use.
Chrome removes roots whose key was generated more than 15 years ago, and so does Mozilla for websites (after 18 years for S/MIME). The BSI's TR-02102-1 expects to recommend classical signature algorithms only until the end of 2035, and NIST IR 8547 disallows them after 2035.
// step 09

Statistics

All measurements run in your browser with real keys and signatures. For each profile, a PKI is built once; then server certificates are repeatedly requested, issued and validated. The raw data can be exported as CSV or JSON.
Profiles
Timings depend on device, browser and load, and apply to these JavaScript implementations, not to optimized native code or HSMs. For the web profiles, “Issue” includes obtaining the SCTs or building the log. Browsers round timer readings to about 0.1 milliseconds, so short operations appear quantized.

How the playground is built

  • Certificates, PKCS #10 requests, CRLs and the TLS handshake are created in the browser, in a web worker, with real keys (@noble/curves, @noble/post-quantum, WebCrypto). No server is involved.
  • The handshake follows RFC 8446 with the hybrid key exchange X25519MLKEM768 from RFC 10024. Key schedule, Finished and record encryption are checked byte for byte against the example handshakes in RFC 8448.
  • Domain validation follows ACME (RFC 8555) with dns-01 and CAA (RFC 8659, RFC 8657). Every cryptographic step is real; only DNS is simulated.
  • Cross-checked with OpenSSL 3.5: the chains with ECDSA, ML-DSA-44, ML-DSA-65 and an SLH-DSA root pass strict validation including host name, purpose and CRL. Requests and CRLs verify, and revoked certificates are rejected.
  • Composite ML-DSA follows draft-ietf-lamps-pq-composite-sigs-19 and is checked against the draft's test vectors. Details may still change before the RFC.
  • The ITU-T extensions follow X.509 (10/2019), section 9.8. The specification leaves some points open; here the demo follows the Bouncy Castle implementation.
  • Merkle Tree Certificates follow draft-ietf-plants-merkle-tree-certs-08: log entries, inclusion proofs, cosignatures and verification as in section 7.2. There is no assigned code point for post-quantum SCTs yet; the demo uses the TLS code point of ML-DSA-44.
  • Only what can't be made real in a browser is simulated: DNS, the network transfer (QUIC packets are computed per RFC 9000, not sent) and Shor's algorithm.
  • Shor's algorithm is simulated: no quantum computer today can break ECDSA. The forgeries and validations, however, are real.