1JOSE-JWE-FMT(1)                                                JOSE-JWE-FMT(1)
2
3
4

NAME

6       jose-jwe-fmt - Converts a JWE between serialization formats
7

SYNOPSIS

9       jose jwe fmt -i JWE [-I CT] [-o JWE] [-O CT] [-c]
10

OVERVIEW

12       The jose jwe fmt command converts a JWE into alternative serialization
13       formats. For example, it can:
14
15        1. Attach ciphertext to a detached JWE.
16
17        2. Detach ciphertext from a JWE.
18
19        3. Convert JWE Compact Serialization to JWE JSON Serialization.
20
21        4. Convert JWE JSON Serialization to JWE Compact Serialization.
22

OPTIONS

24-i JSON, --input=JSON : Parse JWE from JSON
25
26-i FILE, --input=FILE : Read JWE from FILE
27
28-i -, --input=-: Read JWE from standard input
29
30-I FILE, --detached=FILE : Read decoded ciphertext from FILE
31
32-I -, --detached=- : Read decoded ciphertext from standard input
33
34-o FILE, --output=FILE : Write JWE to FILE
35
36-o -, --output=- : Write JWE to stdout (default)
37
38-O FILE, --detach=FILE : Detach ciphertext and decode to FILE
39
40-O -, --detach=- : Detach ciphertext and decode to standard output
41
42-c, --compact : Output JWE using compact serialization
43

EXAMPLES

45       Attach ciphertext to a detached JWE and emit JWE Compact Serialization:
46
47           $ jose jwe fmt -i msg.jwe -I msg.ct -o compact.jwe -c
48
49       Detach ciphertext from a JWE:
50
51           $ jose jwe fmt -i msg.jwe -o detached.jwe -O detached.ct
52

AUTHOR

54       Nathaniel McCallum <npmccallum@redhat.com>
55

SEE ALSO

57       jose-jwe-dec(1), jose-jwe-enc(1)
58
59
60
61                                  01/19/2023                   JOSE-JWE-FMT(1)
Impressum