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

NAME

6       jose-jwk-thp - Calculates the JWK thumbprint
7

SYNOPSIS

9       jose jwk thp -i JWK [-H ALG] [-o THP]
10

OVERVIEW

12       The jose jwk thp command calculates the thumbprint of one or more JWKs.
13

OPTIONS

15       -i JSON, --input=JSON
16              Parse JWK(Set) from JSON
17
18       -i FILE, --input=FILE
19              Read JWK(Set) from FILE
20
21       -i -, --input=-
22              Read JWK(Set) standard input
23
24       -a ALG, --algorithm=ALG
25              Use the specified hash algorithm (case sensitive)
26
27       -a ?, --algorithm=?
28              List available hash algorithms
29
30       -o FILE, --output=FILE
31              Write thumbprint(s) to FILE
32
33       -o -, --output=-
34              Write thumbprint(s) to standard input
35
36       -f THP, --find=THP
37              Search input keys for JWK with the given thumbprint
38

EXAMPLES

40       Calculate the S1 thumbprint of a newly generated key:
41
42
43
44           $ jose jwk gen -i ´{"alg":"ES256"}´ -a S1 | jose jwk thp -i-
45           BzmSH6W8a8LlbQ1mD0iBJdYj4x4
46
47
48
49       Calculate the S256 thumbprints of a JWKSet containing two keys:
50
51
52
53           $ jose jwk thp -i keys.jwkset -a S256
54           6HJwXEuRh8gAkTz4BodEvcEj_KXkgjc-7Qez3d4VNMs
55           jo_j_O5gqYpKcZKHPp3miTszAeV60MXHvdb_kkjjTWE
56
57
58
59       Find the input key with the given thumbprint:
60
61
62
63           $ jose jwk thp -i keys.jwkset -f HYRNOxxOOHap0amTONoy1bHnS5M -o key.jwk
64
65
66

AUTHOR

68       Nathaniel McCallum <npmccallum@redhat.com>
69

SEE ALSO

71       jose-alg(1), jose-jwk-gen(1),
72
73
74
75                                   June 2017                   JOSE-JWK-THP(1)
Impressum