EQTY LabDocs

Command Line

Reference for eqty-notaryctl, the notary's client for registering binaries and managing vTPMs, and for the daemon's own flags.

View as Markdown

eqty-notaryctl is a thin client for the notary’s HTTP API. It ships in the Linux and macOS packages. It does not build on Windows, where the API is the whole interface.

Connection

By default it talks to the daemon over the Unix socket. --tcp uses the loopback listener instead.

OptionMeaning
--socket <path>The Unix socket. Default /var/run/eqty-notary/eqty-notary.sock, or $EQTY_SOCKET.
--tcpUse 127.0.0.1:8066, or $EQTY_TCP_BIND.
--tcp=<addr:port>Use another address. The = is required so that a following subcommand is not read as the address.
--jsonPrint the daemon’s raw JSON response instead of a summary.

Options go before the subcommand: eqty-notaryctl --tcp list.

Registrations

CommandWhat it does
register --path <file>Registers a binary. The daemon canonicalizes and hashes the file it resolves, mints or loads its key, and adds its inode to the observer.
register --hash <hex> --inode <n>Registers a precomputed BLAKE3 hash and inode. The daemon trusts the hash. Use it for a binary inside a container; see Signing from Containers.
listLists the active registrations, with the number of PIDs currently tracked under each.
unregister <hash>Removes a registration by its hex hash. PIDs already tracked keep signing until they exit; the key blob stays on disk, so re-registering reloads the same key.

Registrations live in daemon memory. After a daemon restart the list is empty until binaries are registered again, or call in with auto-registration on.

vTPMs

vtpm manages the hardware-rooted vTPMs the notary runs. These commands go over the Unix socket only; over TCP the daemon answers 403. Root may do everything. A vTPM’s owner, the --client-uid it was created with, may list, show, start and stop that vTPM without sudo. Another user’s vTPM answers 404, as if it did not exist.

CommandWhat it does
vtpm create [--id <id>] [--backing <mode>] --client-uid <uid> --client-gid <gid>Creates, provisions and starts a vTPM. id is 1 to 64 of [a-z0-9-], random when omitted. backing is none, identity or all-signing; the default is the daemon’s EQTY_VTPM_BACKING. The client uid and gid own the vTPM’s sockets: the user QEMU runs as.
vtpm listLists vTPMs.
vtpm show <id>Shows one: state, sockets, the emulator binary and its hash, backing mode, hardware EPS, backing keys.
vtpm start <id>Starts a stopped vTPM. A vTPM stops when its VM powers off or the notary restarts.
vtpm stop <id>Stops a running vTPM.
vtpm delete <id>Stops and crypto-shreds a vTPM: its sealed state key and backing keys are destroyed. Irreversible.
vtpm cert <id> --ek or --iakPrints the vTPM’s EK or IAK certificate as PEM.

For example, a vTPM for your own user, to attach to QEMU:

sh
sudo eqty-notaryctl vtpm create --id vm1 --client-uid "$(id -u)" --client-gid "$(id -g)"
eqty-notaryctl vtpm show vm1

The daemon’s flags

eqty-notary itself takes its configuration from the environment. Three flags exist:

FlagWhat it does
--auto-registerSame as EQTY_AUTO_REGISTER=1: mint a key for any caller on its first /v1/sign or /v1/credential.
--wipe-keysDeletes every key blob under EQTY_KEYS_DIR, and on macOS every Secure Enclave key item the daemon created in the System keychain, then exits. Restart the daemon afterwards. Every binary gets a new key, and a new DID, on its next registration.
--consoleWindows only: run in the foreground instead of as a service. Keys made in console mode carry the Platform Crypto Provider’s default DACL rather than the service’s.