JOSE-JWE-DEC(1)

πŸ’… JOSE-JWE-DEC(1) β€” the jose-jwe-dec page, bestie edition

okay so you opened the JOSE-JWE-DEC(1) manual section and now you're here β€” welcome, this is the one that teaches you how to decrypt a JWE using the supplied JWKs. grab a strawberry drink πŸ“ and let's get into it.


✨ NAME ✨

jose-jwe-dec β€” literally decrypts a JWE using the JWKs you hand it. that's the whole job. she's an icon, she's a decryptor πŸ’…


🌸 SYNOPSIS 🌸

jose jwe dec -i JWE [-I CT] -k JWK [-p] [-O PT]

πŸ¦‹ OVERVIEW πŸ¦‹

so the jose jwe dec command decrypts a JWE using one or more JWK (-k) or a password (-p). and the vibe check here is: decryption succeeds if any key is able to perform decryption β€” she only needs one of your keys to work it out 🫢

if the JWE is a detached JWE β€” meaning the ciphertext is stored in binary form external to the JWE itself β€” you can load that ciphertext with the -I parameter. no cap, that's what it's for ✨

⚠️ bestie please read this one: when you specify the -O option to output the plaintext, plaintext output begins before ciphertext validation. so you absolutely must check the return value of the command before using the data 😭 like, do not trust that output until you've checked. periodt.

πŸ‘‘ OPTIONS πŸ‘‘

  • -i JSON, --input=JSON β€” parse JWE from JSON πŸŽ€
  • -i FILE, --input=FILE β€” read JWE from FILE πŸ“
  • -i -, --input=- β€” read JWE from standard input ⌨️
  • -I FILE, --detached=FILE β€” read decoded ciphertext from FILE 🧚
  • -I -, --detached=- β€” read decoded ciphertext from standard input 🌈
  • -p, --password β€” prompt for a decryption password, if necessary πŸ”
  • -k FILE, --key=FILE β€” read JWK(Set) from FILE πŸ—οΈ
  • -k -, --key=- β€” read JWK(Set) from standard input πŸ’œ
  • -O JSON, --detach=JSON β€” parse JWE from JSON
  • -O FILE, --detach=FILE β€” read JWE from FILE
  • -O -, --detach=- β€” read JWE from standard input

(yes, the -O descriptions are exactly what the page says β€” she said what she said πŸ™ˆ)


πŸ’– EXAMPLES πŸ’–

decrypt a JWE with a JWK β€” main character energy:

$ jose jwe dec -i msg.jwe -k rsa.key -O msg.txt

decrypt a JWE with a password β€” she'll ask you nicely:

$ jose jwe dec -i msg.jwe -p -O msg.txt
Please enter decryption password:

decrypt a JWE with either of two JWKs β€” options, we love to see it:

$ jose jwe dec -i msg.jwe -k ec.jwk -k rsa.jwk -O msg.txt

πŸŽ€ AUTHOR πŸŽ€

Nathaniel McCallum <npmccallum@redhat.com> β€” thank you for your service πŸ«‘πŸ’


πŸ”₯ SEE ALSO πŸ”₯

jose-jwe-enc(1), jose-jwe-fmt(1) β€” go read the siblings, iykyk ⭐


and that's the whole page, bestie πŸ₯³ this was JOSE-JWE-DEC(1) from the June 9, 2026 drop (that's 06/09/2026 for the calendar girlies), and yes it's the same JOSE-JWE-DEC(1) she's been the whole time πŸ’– slay, go decrypt something πŸ¦‹

πŸ“¦ where this page comes from