'\" t .\" Title: jose-jwk-thp .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.20 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "JOSE\-JWK\-THP" "1" "" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" jose-jwk-thp \- Calculates the JWK thumbprint .SH "SYNOPSIS" .sp \fBjose jwk thp\fP \-i JWK [\-H ALG] [\-o THP] .SH "OVERVIEW" .sp The \fBjose jwk thp\fP command calculates the thumbprint of one or more JWKs. .SH "OPTIONS" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-i\fP \fIJSON\fP, \fB\-\-input\fP=\fIJSON\fP : Parse JWK(Set) from JSON .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-i\fP \fIFILE\fP, \fB\-\-input\fP=\fIFILE\fP : Read JWK(Set) from FILE .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-i\fP \-, \fB\-\-input\fP=\- : Read JWK(Set) standard input .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-a\fP \fIALG\fP, \fB\-\-algorithm\fP=\fIALG\fP : Use the specified hash algorithm (case sensitive) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-a\fP ?, \fB\-\-algorithm\fP=? : List available hash algorithms .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-o\fP \fIFILE\fP, \fB\-\-output\fP=\fIFILE\fP : Write thumbprint(s) to FILE .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-o\fP \-, \fB\-\-output\fP=\- : Write thumbprint(s) to standard input .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-f\fP \fITHP\fP, \fB\-\-find\fP=\fITHP\fP : Search input keys for JWK with the given thumbprint .RE .SH "EXAMPLES" .sp Calculate the S1 thumbprint of a newly generated key: .sp .if n .RS 4 .nf .fam C $ jose jwk gen \-i \*(Aq{"alg":"ES256"}\*(Aq \-a S1 | jose jwk thp \-i\- BzmSH6W8a8LlbQ1mD0iBJdYj4x4 .fam .fi .if n .RE .sp Calculate the S256 thumbprints of a JWKSet containing two keys: .sp .if n .RS 4 .nf .fam C $ jose jwk thp \-i keys.jwkset \-a S256 6HJwXEuRh8gAkTz4BodEvcEj_KXkgjc\-7Qez3d4VNMs jo_j_O5gqYpKcZKHPp3miTszAeV60MXHvdb_kkjjTWE .fam .fi .if n .RE .sp Find the input key with the given thumbprint: .sp .if n .RS 4 .nf .fam C $ jose jwk thp \-i keys.jwkset \-f HYRNOxxOOHap0amTONoy1bHnS5M \-o key.jwk .fam .fi .if n .RE .SH "AUTHOR" .sp Nathaniel McCallum \c .MTO "npmccallum\(atredhat.com" "" "" .SH "SEE ALSO" .sp .URL "jose\-alg.1.adoc" "\fBjose\-alg\fP(1)" "," .URL "jose\-jwk\-gen.1.adoc" "\fBjose\-jwk\-gen\fP(1)" ","