In your browser
2 minutes · Nothing to installOpen try.safecac.com, make a virtual card and sign in to the demo app with PIN 123456. The card generates its own ML-DSA-87 and ML-KEM-1024 keys, and the sandbox's test CA certifies them.
Sign in with a post-quantum card in your browser in two minutes. Then run the card on your own machine, try the PIV cards you already have and connect your own apps. Everything on this page is free for development.
Free ways to test
Three of these work today in a browser or with a quick email. The rest come with the free developer preview: ask once and we send the tools and test certificates.
Open try.safecac.com, make a virtual card and sign in to the demo app with PIN 123456. The card generates its own ML-DSA-87 and ML-KEM-1024 keys, and the sandbox's test CA certifies them.
Download the sandbox's root certificates and its identity provider metadata, to inspect an ML-DSA-87 chain and plan your broker's settings.
curl -O https://try.safecac.com/pki/root-ca.pem
curl -O https://try.safecac.com/pki/classical-root-ca.pem
curl https://try.safecac.com/idp/saml/metadata
Import the sandbox metadata into your broker and send us its entity ID and assertion consumer URL. We register test brokers for free, and your users sign in with virtual cards.
Run the card simulator and the bridge on your machine and sign in to the sandbox. The card's keys never leave it: on the first run it enrolls itself with the test CA.
cargo run --release -p pqpiv-sim -- --listen 127.0.0.1:35964 --state hosted-card.bin
cargo run --release -p pqbridge -- --hosted https://try.safecac.com \
--card 127.0.0.1:35964 --surname DOE --given-name JANE
Test PKI, card simulator, identity provider, bridge and Keycloak, all local. Then sign in to Keycloak through the bridge with PIN 123456.
scripts/demo.sh up
docker compose up -d keycloak
python3 scripts/keycloak_e2e.py
Enroll it with the local test PKI and sign in through the bridge. A card without post-quantum keys signs with its classical 9A key, still inside an ML-KEM-1024 TLS 1.3 session, and the identity provider marks the sign-in as classical.
pqbridge --list-readers
pqbridge --reader auto
One module for any maker's PIV card: classical keys on every card, and ML-DSA-87 signing and ML-KEM-1024 decapsulation on SafeCAC cards. Tested with pkcs11-tool and ssh-keygen against the simulator and through pcscd.
pkcs11-tool --module libpqpkcs11.so -L
pkcs11-tool --module libpqpkcs11.so --login -O
The card's keys in Windows applications through CNG, with ML-DSA-87, and in macOS apps through CryptoTokenKit. Both are in early development, and we are looking for testers with real machines and cards.
Kits
Both kits are priced near cost and run the same code as production, so nothing you build is rewritten later.
Real PIV cards and a reader, to move from the simulator to hardware.
The cards carry classical keys. Post-quantum keys run in the simulator, or on the chip with the post-quantum kit.
The whole post-quantum flow on hardware: the SafeCAC chip on an FPGA board, in a card reader, signing you in with ML-DSA-87.
You also need a Digilent Nexys Video board (part 410-316), bought separately from Digilent or a distributor. We ship the kit when the reader firmware is ready; reservations go first.
From sandbox to production
What you build in the sandbox carries over to the developer kit, the pilot and production. Only the cards and the trust anchors change.
The sandbox in any browser, the test PKI, a test registration for your broker, and the developer preview for your own machine.
The $99 developer kit adds real PIV cards and a reader. The $199 post-quantum kit adds the reader adapter and firmware that run the SafeCAC chip on an FPGA board. The PKCS #11 module and the drivers stay free for development.
Cards for your team, a hosted identity provider on your own trust anchors, and our help connecting your identity broker, VPN and signing tools.
Seat licenses for the middleware and identity provider, cards or tokens, and support for your rollout.
Connect your app
Your applications keep speaking SAML 2.0. The PIN, the card's ML-DSA-87 signature and the ML-KEM-1024 session stay between the user's device and the SafeCAC identity provider, so adding post-quantum sign-in is a configuration change, not a rewrite.
Add https://try.safecac.com/idp/saml/metadata to Keycloak or any SAML 2.0 broker as an identity provider. The settings it needs are below.
Send us your entity ID and assertion consumer URL and we add your broker to the sandbox for free. In a pilot it gets its own identity provider.
Use the EDIPI as the user's identifier and map names and email as you need them. The full list is below.
Architecture
Your application and its broker only see standard SAML 2.0. The post-quantum link, in orange, runs between the user's device and the SafeCAC identity provider.
Sign-in flow
SAML 2.0
Attributes
Sandbox
A public test service with a test PKI. Never use a real card or a real identity with it.
Algorithms
Error codes
Error pages show a reason code under Details. These are the ones an integration meets.
Beyond the browser
Questions
Support
Open the sandbox now, or tell us what you are integrating and we will send the developer preview and help you connect it.