The root tool
claubase-root makes company root keys and signs with them. It is meant to run on an offline machine, keeps no log and reads no configuration. macOS and Linux. No command overwrites a file. Exit code 0 is success, 1 a refusal, 2 a usage error.
Download and check
All three programs are checked the same way. Get the binary for your platform and SHA256SUMS from the download table, into one folder. Linux x86-64 is shown; change the file name for yours.
# Linux
sha256sum --ignore-missing -c SHA256SUMS
# macOS
shasum -a 256 --ignore-missing -c SHA256SUMS
chmod +x claubase-root-linux-amd64
mv claubase-root-linux-amd64 claubase-root
./claubase-root version
The checksum file comes from the same server as the binaries. It catches a damaged download, not a server that swapped both. The binaries are not code signed or notarised. If macOS blocks one, and only after its sum matched, run xattr -d com.apple.quarantine claubase-root.
For a production ceremony, do not rely on the download alone. At least two people should build the agreed source commit themselves, compare the sums, and compare them aloud again on each offline machine.
Try it with a test root
All test keys sit in one directory with a passphrase everybody knows. Never use any of it in production. The directory must be outside any git repository. Run these from the folder that holds the binary.
export PATH="$PWD:$PATH"
export CLAUBASE_ROOT_TEST_PASSPHRASE=not-a-secret-test-only
claubase-root test-setup --out /tmp/root-TEST
cd /tmp/root-TEST
You get a root definition and, for each of four test holders, an encrypted key and a public key. Test material is marked, prints a warning banner, and production commands refuse it.
Now certify that the name alice belongs to a key. The key below is an example value.
claubase-root statement name --root TEST-root.root-def --name alice --generation 1 \
--key 6e7a1cdd29b0b78fd13af4c5598feff4ef2a97166e3ca6f2e4fbfccd80505bf1 --out alice.stmt
claubase-root show alice.stmt
claubase-root sign --root TEST-root.root-def --key test-holder-1.root-key --out h1.sig alice.stmt
claubase-root sign --root TEST-root.root-def --key test-holder-2.root-key --out h2.sig alice.stmt
claubase-root sign --root TEST-root.root-def --key test-holder-3.root-key --out h3.sig alice.stmt
claubase-root assemble --root TEST-root.root-def --out alice.cert alice.stmt h1.sig h2.sig h3.sig
claubase-root verify --root TEST-root.root-def --expect alice alice.cert
Try assemble with only two signatures: it refuses and writes nothing, because three are needed.
The production ceremony
Four named holders, each with their own offline machine with full-disk encryption, two removable drives, and a checked binary. The threshold is fixed at 3 of 4. Passphrases are typed at the terminal and are at least 20 characters.
Make the root
Each holder, with the network off, makes a key on removable media:
claubase-root keygen --holder holder-a --out /media/holder-a
The tool warns if the machine still has a network address, and carries on, so ask every holder whether a warning appeared. A coordinator then collects the four public keys:
claubase-root define --sequence 1 --threshold 3 --out root-1.root-def \
holder-a.root-pub holder-b.root-pub holder-c.root-pub holder-d.root-pub
claubase-root show root-1.root-def
Every holder finds their own public key in the list, and the four read the fingerprint aloud. That fingerprint goes into client configuration by a route the server does not control. This check matters: the profile label on public files is not signed.
Certify
For the log server's key, use statement log-key. For a person's first device, confirm in person that the key is theirs, then use statement name. Three holders sign, comparing the statement ID aloud. Then assemble and verify. A name certified at a generation above 1 is a reset.
For a person who lost their recovery key but still has a device, statement recovery takes the name, its current generation, the replaced key and the new key. It is not a reset. The person then applies it with claubase recovery apply. claubase-log publish --recovery NAME=CERT publishes it again, as needed after a root rotation.
Back up, rehearse, replace
- Back up only the encrypted key file: two copies on two drives in two places. Keep the passphrase in your head, with a sealed paper copy kept apart.
- At least once a year, and after any holder change, three holders sign a
statement rehearsal. No client accepts it. Never rehearse with a real statement. - A lost key, a forgotten passphrase, a leaver or a possible exposure all mean replacing that holder at once: define the next root, sign a
statement rotationwith three remaining keys, and certify again the log key, every name and every applied recovery key. Before releasing the rotation,check-rotation --root CUR --next NEXT CERT..., given the old and new certificates, lists what is still missing among them.
Limits
- The private key is decrypted in memory. It is zeroed after use, but memory and swap cannot be wiped reliably, hence offline machines with full-disk encryption.
- Hardware security keys are not supported.
- The tool does not send certificates anywhere.
claubase-log publishputs them in the log.