Documentation menu

CLI reference

jwks-bridge [command] [flags]. Without a command, serve runs.

serve

Runs the bridge. Flags are listed in Configuration; jwks-bridge serve -h prints them with their environment variables.

keygen

Generates a key pair and prints it as a keyset entry.

FlagDefaultDescription
--algRS256Signing algorithm.
--kidUTC timestampKey id.
--statusstagedstaged, active or retired. Sets staged_at or promoted_at.
--bits2048RSA key size.
--docfalseWrap the entry in {"keys":[…]} for the file source.
jwks-bridge keygen --alg ES256 --kid 2026-11-k3
jwks-bridge keygen --status active --doc > default.json

validate

Validates a document or a bare array of entries, and prints the served order.

jwks-bridge validate --file default.json
vault kv get -field=keys secret/jwks-bridge/default | jwks-bridge validate

--min-stage-duration applies the staging guard (default 10m).

version

Prints the version, commit and build date.