JOSE-JWS-VER(1)

πŸ’… JOSE-JWS-VER(1) β€” bestie's guide to jose jws ver

Okay so picture this: it's the jose-jws-ver manual page, but make it make sense. We're verifying a JWS with the JWKs you hand it. That's the whole vibe. Let's get into it. πŸŽ€


✨ NAME ✨

jose-jws-ver β€” verifies a JWS using the supplied JWKs. That's it. That's the task. Slay. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

Read it slow, bestie, it's giving "small line, big power". 🌸


🌈 OVERVIEW 🌈

So the jose jws ver command verifies a signature over a payload using one or more JWKs. Main character energy fr fr.

When you specify more than one JWK with -k, the program will succeed when any of the provided JWKs successfully verifies a signature. Like, one of your girls shows up and the whole group chat is valid, you know? 🫢

Alternatively, if the -a option is given, the program will succeed only when all JWKs successfully verify a signature. Now it's a full squad check-in. Nobody skips. Periodt. πŸ‘‘

If the JWS is a detached JWS β€” meaning the payload is stored in binary form external to the JWS itself β€” the payload can be loaded using the -I parameter. External payload, iconic behaviour, no cap. πŸ’–

⚠️ Okay this part matters, so listen: when you specify the -O option to output the payload, the payload is output whether or not the signature validates. The payload does not care about your feelings or your crypto. Therefore, you must check the return value of the command before trusting the data. Literally always. Don't be out here trusting unverified bytes, bestie, that's not the vibe. 😭

🧚 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. Every. Single. One. πŸ”₯

πŸ“ 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

Three examples, three little wins. We ate. 🌟


πŸ‘‘ AUTHOR πŸ‘‘

Nathaniel McCallum <npmccallum@redhat.com> β€” the legend behind this whole thing. Respect where respect is due. πŸ’œ


🌸 SEE ALSO 🌸

Go read those too, iykyk. πŸ¦‹


And that's the whole page, bestie! This gem is dated 06/09/2026 and it lives under JOSE-JWS-VER(1). Now go verify something before you trust it β€” mwah! πŸ’‹πŸŽ€

πŸ“¦ where this page comes from