1JOSE-JWK-PUB(1)                                                JOSE-JWK-PUB(1)
2
3
4

NAME

6       jose-jwk-pub - Cleans private keys from a JWK
7

SYNOPSIS

9       jose jwk pub -i JWK [-o JWK]
10

OVERVIEW

12       The  jose  jwk pub command removes all private key material from one or
13       more JWK(Set) inputs. The output will contain only public key material.
14
15       If the JWK contains the "key_ops" property, it  will  be  automatically
16       adjusted to include only operations relevant to public keys.
17

OPTIONS

19       -i JSON, --input=JSON
20              Parse JWK(Set) from JSON
21
22       -i FILE, --input=FILE
23              Read JWK(Set) from FILE
24
25       -i -, --input=-
26              Read JWK(Set) from standard input
27
28       -o FILE, --output=FILE
29              Write JWK(Set) to FILE
30
31       -o -, --output=-
32              Write JWK(Set) to standard input
33
34       -s, --set
35              Always output a JWKSet
36

EXAMPLES

38       Clean private key material from a JWK:
39
40
41
42           $ jose jwk gen -i ´{"alg":"ES256"}´ -o prv.jwk
43           $ cat prv.jwk
44           {"alg":"ES256","crv":"P-256","key_ops":["sign","verify"],"kty":"EC", ...}
45           $ jose jwk pub -i prv.jwk -o pub.jwk
46           $ cat pub.jwk
47           {"alg":"ES256","crv":"P-256","key_ops":["verify"],"kty":"EC", ...}
48
49
50

AUTHOR

52       Nathaniel McCallum <npmccallum@redhat.com>
53

SEE ALSO

55       jose-alg(1),    jose-jwe-enc(1),    jose-jwk-exc(1),   jose-jwk-gen(1),
56       jose-jwk-thp(1), jose-jwk-use(1), jose-jws-ver(1)
57
58
59
60                                   June 2017                   JOSE-JWK-PUB(1)
Impressum