1JOSE-JWK-PUB(1) JOSE-JWK-PUB(1)
2
3
4
6 jose-jwk-pub - Cleans private keys from a JWK
7
9 jose jwk pub -i JWK [-o JWK]
10
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
19 • -i JSON, --input=JSON : Parse JWK(Set) from JSON
20
21 • -i FILE, --input=FILE : Read JWK(Set) from FILE
22
23 • -i -, --input=- : Read JWK(Set) from standard input
24
25 • -o FILE, --output=FILE : Write JWK(Set) to FILE
26
27 • -o -, --output=- : Write JWK(Set) to standard input
28
29 • -s, --set : Always output a JWKSet
30
32 Clean private key material from a JWK:
33
34 $ jose jwk gen -i '{"alg":"ES256"}' -o prv.jwk
35 $ cat prv.jwk
36 {"alg":"ES256","crv":"P-256","key_ops":["sign","verify"],"kty":"EC", ...}
37 $ jose jwk pub -i prv.jwk -o pub.jwk
38 $ cat pub.jwk
39 {"alg":"ES256","crv":"P-256","key_ops":["verify"],"kty":"EC", ...}
40
42 Nathaniel McCallum <npmccallum@redhat.com>
43
45 jose-alg(1), jose-jwe-enc(1), jose-jwk-exc(1), jose-jwk-gen(1),
46 jose-jwk-thp(1), jose-jwk-use(1), jose-jws-ver(1)
47
48
49
50 07/21/2022 JOSE-JWK-PUB(1)