1JOSE-JWE-FMT(1) JOSE-JWE-FMT(1)
2
3
4
6 jose-jwe-fmt - Converts a JWE between serialization formats
7
9 jose jwe fmt -i JWE [-I CT] [-o JWE] [-O CT] [-c]
10
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
23
24
26 -i JSON, --input=JSON
27 Parse JWE from JSON
28
29 -i FILE, --input=FILE
30 Read JWE from FILE
31
32 -i -, --input=-
33 Read JWE from standard input
34
35 -I FILE, --detached=FILE
36 Read decoded ciphertext from FILE
37
38 -I -, --detached=-
39 Read decoded ciphertext from standard input
40
41 -o FILE, --output=FILE
42 Write JWE to FILE
43
44 -o -, --output=-
45 Write JWE to stdout (default)
46
47 -O FILE, --detach=FILE
48 Detach ciphertext and decode to FILE
49
50 -O -, --detach=-
51 Detach ciphertext and decode to standard output
52
53 -c, --compact
54 Output JWE using compact serialization
55
57 Attach ciphertext to a detached JWE and emit JWE Compact Serialization:
58
59
60
61 $ jose jwe fmt -i msg.jwe -I msg.ct -o compact.jwe -c
62
63
64
65 Detach ciphertext from a JWE:
66
67
68
69 $ jose jwe fmt -i msg.jwe -o detached.jwe -O detached.ct
70
71
72
74 Nathaniel McCallum <npmccallum@redhat.com>
75
77 jose-jwe-dec(1), jose-jwe-enc(1)
78
79
80
81 May 2017 JOSE-JWE-FMT(1)