Docs/Octet Vaults/Getting Started

Quickstart

This quickstart takes you from a licence to your first archived proof, opened and verified on your own machine. Octet runs two steps for you: creating the vault, and turning on sealing once your key is active. Everything else runs on your machine with the octet-vault CLI, and your private keys never leave it.

Before you start

  • An Octet licence, and a portal user with the owner or admin role on it.
  • An app on that licence that uploads proofs, and one device to make a test proof with.
  • macOS (Apple silicon or Intel) or Linux (x86-64).
  • For each key file, a passphrase of at least 12 characters. Store the passphrases in your password manager.
  • Optional: a YubiKey 5 with firmware 5.7 or later, and ykman, to keep the owner key on the YubiKey instead of in a file.

1. Install the CLI

Each release on github.com/octetproof/octet-vault has one binary per platform, the man pages in octet-vault-man.tar.gz, a SHA256SUMS file, and its Sigstore signature SHA256SUMS.sigstore.json. The check below needs cosign 2.x or later.

File Platform
octet-vault-1.0.2-aarch64-apple-darwin macOS, Apple silicon
octet-vault-1.0.2-x86_64-apple-darwin macOS, Intel
octet-vault-1.0.2-x86_64-unknown-linux-gnu Linux x86-64 (glibc)

Download the binary for your platform with SHA256SUMS and its signature, check the signature of SHA256SUMS, then check the binary against it:

VERSION=1.0.2
FILE=octet-vault-$VERSION-aarch64-apple-darwin   # or x86_64-apple-darwin, x86_64-unknown-linux-gnu
BASE=https://github.com/octetproof/octet-vault/releases/download/v$VERSION
IDENTITY="https://github.com/octetproof/octet-vault/.github/workflows/sign-release.yml@refs/tags/v$VERSION"
for f in "$FILE" SHA256SUMS SHA256SUMS.sigstore.json; do curl -fsSLO "$BASE/$f"; done

cosign verify-blob --bundle SHA256SUMS.sigstore.json \
  --certificate-identity "$IDENTITY" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  SHA256SUMS                                     # must print "Verified OK"
grep " $FILE\$" SHA256SUMS | shasum -a 256 -c -  # must print "$FILE: OK"

The cosign step accepts only a signature made by the repository's sign-release.yml workflow for exactly this version, https://github.com/octetproof/octet-vault/.github/workflows/sign-release.yml@refs/tags/v1.0.2. A signature from any other workflow, repository or tag fails it.

The macOS binaries are signed with Octet's Apple Developer ID and notarized by Apple. A bare binary cannot carry the notarization ticket, so macOS checks it with Apple online the first time it starts.

Then install the binary:

chmod +x "$FILE"
sudo mv "$FILE" /usr/local/bin/octet-vault
octet-vault -V                                   # octet-vault 1.0.2

octet-vault --version also prints the commit the binary was built from, its target, its build date and the fingerprints of Octet's two root keys, which every release has built in (see The root of trust).

Optional: load the shell completions and install the man pages (see Completions and man pages).

2. Ask Octet to create your vault

Write to developer@octetproof.com with your licence ID, the environment your app uploads in, and how many days to keep each proof. The environment is release or sandbox:

  • iOS: a build that uses the App Attest development environment, such as a debug build run from Xcode, uploads as sandbox. A TestFlight or App Store build uses the production environment and uploads as release.
  • Android: a build signed with the certificate you registered for sandbox, usually your debug keystore, uploads as sandbox. A build signed with your release certificate uploads as release.
  • Simulators and emulators upload as sandbox.

Octet creates the vault with sealing still off, and replies with a policy hash. Save it as the first line of your monitor allow-list, in a working directory for your vault:

mkdir -p ~/octet-vault && cd ~/octet-vault
echo "policy_changed <policy hash from Octet>" > allow.txt

3. Get two tokens

In the Octet portal, open your licence's Vaults tab and mint two tokens for your vault's environment:

  • a vaults:admin token, which lasts 1 day by default, for the key setup below;
  • a vaults:read token, which lasts 30 days by default, for reading and monitoring.

Save each one in a file that only you can read. Paste the token, press Enter, then Ctrl-D:

umask 077
cat > admin.token   # the vaults:admin token
cat > read.token    # the vaults:read token

See Credentials for the full rules.

4. Create and set the owner key

The owner key signs every recipient key, so a key that you did not sign stands out in monitor.

octet-vault owner keygen --out owner.key --label "<your company> owner"
octet-vault --token-file admin.token owner set --owner-key owner.key --allow-list allow.txt

To keep the owner key on a YubiKey instead, generate it in a free PIV slot and pass --owner-piv <slot> wherever this guide passes --owner-key owner.key:

ykman piv keys generate --algorithm ED25519 <slot> owner.pub.pem
octet-vault --token-file admin.token owner set --owner-piv <slot> --allow-list allow.txt

ykman asks to run a script, then asks for the PIV PIN, and the YubiKey asks for a touch.

5. Create and register the recipient key

The recipient key is the key every object is sealed to.

octet-vault keygen --out vault.key --label "<your company> vault"
octet-vault --token-file admin.token register --key vault.key --owner-key owner.key --allow-list allow.txt

register signs the key with the owner key, proves to the vault that you hold the private key, and activates it. It prints the key's ID (ovk-…) and its fingerprint. Record both.

Back up the recipient key

Every object is sealed to this key. If you lose the key file or its passphrase, nobody can open your archived proofs, Octet included. To split a backup among custodians, read Recover a Recipient Key before you run keygen: the split happens when the key is created.

6. Ask Octet to turn on sealing

Reply to Octet that your key is active. Octet turns on sealing and sends you a second policy hash. Add it to the allow-list:

echo "policy_changed <second policy hash from Octet>" >> allow.txt

Only proofs uploaded after this point are sealed.

7. Seal, open and verify your first proof

Make a proof with your app on a test device. It is usually in the vault within a minute:

octet-vault --token-file read.token list --since <RFC 3339 time just before the upload>

list prints one row per object under a header: the object ID (OBJECT), when it was received (RECEIVED), what it holds (TYPE), its source (SOURCE), the recipient key (KID) and its size class (SIZE). --since and --until take RFC 3339 times, such as 2026-11-26T09:00:00Z.

On iOS, list can also show an enrolment object. When a device enrols with Octet while your vault is sealing, the vault archives the device's App Attest enrolment as an object of its own, also with the source INGEST. The TYPE column tells them apart: an enrolment is ENROLMENT, and a proof is PROOF_EVIDENCE. Verify the proof, not the enrolment.

Wait 2 to 3 minutes after the object appears before you run verify. The checkpoint that contains the object gets its RFC 3161 timestamp from DigiCert a minute or two after sealing. Until then, rfc3161 reads ABSENT and the validation window's upper bound is the vault's received time, labelled Octet-asserted.

Verify the proof with your app's identity:

# Android
octet-vault --token-file read.token verify <object-id> --key vault.key \
    --android-app-identity <package name>,<signing certificate SHA-256>

# iOS
octet-vault --token-file read.token verify <object-id> --key vault.key \
    --app-attest-team-id <team ID> --app-attest-bundle-id <bundle ID>

The signing certificate SHA-256 is 64 hex digits, with or without colons, as keytool or the Play Console prints it.

The app identity is what lets verify report VALID: it checks that the proof came from your app. Without it, the app-binding line reads NOT-CHECKED and the result is INCONCLUSIVE, exit code 3. On iOS, verify accepts the App Attest environment of your vault by default: production for a release vault, development for a sandbox vault.

verify prints every line that is not a PASS, such as the bounds of the validation window and the checks that did not run, then its result in two lines: the verdict with the check that decided it, and Not checked: with every check that did not run. For a valid proof the result reads VALID: no check failed, and verify exits 0.

Right after sealing, opentimestamps reads ABSENT: the Bitcoin anchor follows within hours. The anchor is listed under Not checked: until then, and the verdict stays VALID. --verbose prints every check, the passes included. See Check Lines and Exit Codes to read each line.

8. Start monitoring

Run monitor once now, so it records the log state it checks future runs against. --witness pins Octet's witness, so monitor checks that the witness cosigned the log. Without it, the cosignatures line reads NOT-CHECKED.

octet-vault --token-file read.token monitor --state monitor-state.json --allow-list allow.txt \
    --witness 'witness.octetproof.com/vaults+99265bea+BGkKndgz3F3xzByfKpUXmWMUUHH38o0GJM0Y4dxfjmBW'

It exits 0 when every event since the last run was expected. Schedule it next: see Monitor Your Vault.

Next

TermsPrivacyCopyright© 2026 Understone, Inc. d/b/a Octet