jose-jws-ver(1)

jose-jws-ver1

Verifies a jws using the supplied jwks

Usage

jose jws ver -i JWS [-I PAY] -k JWK [-a] [-O PAY]

Overview

The jose jws ver command verifies a signature over a payload using one or more JWKs. When specifying more than one JWK (-k), the program will succeed when any of the provided JWKs successfully verify a signature. Alternatively, if the -a option is given, the program will succeed only when all JWKs successfully verify a signature.

If the JWS is a detached JWS, meaning that the payload is stored in binary form external to the JWS itself, the payload can be loaded using the -I parameter.

Please note that, when specifying the -O option to output the payload, the payload is output whether or not the signature validates. Therefore, you must check the return value of the command before trusting the data.

Options

• -i JSON, --input=JSON : Parse JWS from JSON

• -i FILE, --input=FILE : Read JWS from FILE

• -i -, --input=- : Read JWS from standard input

• -I FILE, --detached=FILE : Read decoded payload from FILE

• -I -, --detached=- : Read decoded payload from standard input

• -k FILE, --key=FILE : Read JWK(Set) from FILE

• -k -, --key=- : Read JWK(Set) from standard input

• -O FILE, --detach=FILE : Decode payload to FILE

• -O -, --detach=- : Decode payload to standard output

• -a, --all : Ensure the JWS validates with all keys

Examples

Verify a regular JWS and output the payload:

$ jose jws ver -i msg.jws -k key.jwk -O msg.txt

Verify a detached JWS without outputting the payload:

$ jose jws ver -i msg.jws -I msg.txt -k key.jwk

Ensure that a JWS is signed with all specified keys:

$ jose jws ver -i msg.jws -k ec.jwk -k rsa.jwk -a

Releases

5 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10–11
  2. 12
  3. 13
  4. Arch

--all until Debian 11 (Bullseye); --detach until Debian 11 (Bullseye); --detached until Debian 11 (Bullseye); --input until Debian 11 (Bullseye); --key until Debian 11 (Bullseye); -I until Debian 11 (Bullseye); -O until Debian 11 (Bullseye); -a until Debian 11 (Bullseye); -i until Debian 11 (Bullseye); -k until Debian 11 (Bullseye).

Author

Nathaniel McCallum <[email protected]>

From jose 15-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.