oroc update verify
Verify a manifest + signature pair using an Ed25519 public key.
Usage#
oroc update verify (--keys=<file> | --public-key=<hex>) [options]
Options#
| Option | Description |
|---|---|
--manifest=<path> |
path to the manifest JSON file (default: manifest-name or ORO_UPDATE_MANIFEST_FILENAME) |
--manifest-name=<name> |
manifest filename to use when --manifest is not provided |
--signature=<path> |
path to the signature JSON file (default: <manifest-without-extension>.sig) |
--keys=<file> |
JSON file containing a public key ("publicKey" or "key" field) |
--public-key=<hex> |
Ed25519 public key as a hex string |
--log-file=<path> |
mirror logs to a JSON file |
-h, --help |
show help |
Notes#
Exits with status 0 when the signature is valid for the manifest and public key; non-zero otherwise.
Advanced: set ORO_UPDATE_MANIFEST_FILENAME or pass '--manifest-name' to change the default manifest filename
(the default signature path is derived as '<manifest-without-extension>.sig', e.g. manifest.json -> manifest.sig).
Examples#
oroc update verify --keys key.json --manifest manifest.json
verify manifest.json against manifest.sig using the public key in key.json
oroc update verify --public-key <hex-public-key> --manifest manifest.json --signature manifest.sig
verify using an explicit hex-encoded public key and signature file
Source repository · Edit this page · View Markdown