jose-jwe-fmt.1.adoc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. jose-jwe-fmt(1)
  2. ===============
  3. :doctype: manpage
  4. == NAME
  5. jose-jwe-fmt - Converts a JWE between serialization formats
  6. == SYNOPSIS
  7. *jose jwe fmt* -i JWE [-I CT] [-o JWE] [-O CT] [-c]
  8. == OVERVIEW
  9. The *jose jwe fmt* command converts a JWE into alternative serialization
  10. formats. For example, it can:
  11. 1. Attach ciphertext to a detached JWE.
  12. 2. Detach ciphertext from a JWE.
  13. 3. Convert JWE Compact Serialization to JWE JSON Serialization.
  14. 4. Convert JWE JSON Serialization to JWE Compact Serialization.
  15. == OPTIONS
  16. * *-i* _JSON_, *--input*=_JSON_ :
  17. Parse JWE from JSON
  18. * *-i* _FILE_, *--input*=_FILE_ :
  19. Read JWE from FILE
  20. * *-i* -, *--input*=-:
  21. Read JWE from standard input
  22. * *-I* _FILE_, *--detached*=_FILE_ :
  23. Read decoded ciphertext from FILE
  24. * *-I* -, *--detached*=- :
  25. Read decoded ciphertext from standard input
  26. * *-o* _FILE_, *--output*=_FILE_ :
  27. Write JWE to FILE
  28. * *-o* -, *--output*=- :
  29. Write JWE to stdout (default)
  30. * *-O* _FILE_, *--detach*=_FILE_ :
  31. Detach ciphertext and decode to FILE
  32. * *-O* -, *--detach*=- :
  33. Detach ciphertext and decode to standard output
  34. * *-c*, *--compact* :
  35. Output JWE using compact serialization
  36. == EXAMPLES
  37. Attach ciphertext to a detached JWE and emit JWE Compact Serialization:
  38. $ jose jwe fmt -i msg.jwe -I msg.ct -o compact.jwe -c
  39. Detach ciphertext from a JWE:
  40. $ jose jwe fmt -i msg.jwe -o detached.jwe -O detached.ct
  41. == AUTHOR
  42. Nathaniel McCallum <npmccallum@redhat.com>
  43. == SEE ALSO
  44. link:jose-jwe-dec.1.adoc[*jose-jwe-dec*(1)],
  45. link:jose-jwe-enc.1.adoc[*jose-jwe-enc*(1)]