// 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 trust | The 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 today | Free 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. |
| Transparency | No 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 lifetime | Set 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 certificates | Direct: 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.
- 1 Key ceremony
- 2 Request
- 3 Domain validation
- 4 Issuance
- 5 Handshake
- 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.
Key ceremony
Request and issue a certificate
Run the key ceremony first.
Connection setup
Issue a server certificate first.
What validation catches
Build a PKI above first.
Attacker's view
Revocation and lifetime
Merkle Tree Certificates
- 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.
- The CA and an independent mirror cosign subtrees of the log with ML-DSA-44.
- 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.
- Clients without current landmarks get the standalone certificate with the cosignatures.
The three clocks of a root
Statistics
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.