'\" t .\" Title: jose-jwk-eql .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.20 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" .TH "JOSE\-JWK\-EQL" "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-eql \- Checks if two keys are equal .SH "SYNOPSIS" .sp \fBjose jwk eql\fP \-i JWK \-i JWK .SH "OVERVIEW" .sp The \fBjose jwk eql\fP command determines whether two keys are equal. It compares the same properties defined for use in a JWK thumbprint (RFC 7638). This means that optional metadata isn\(cqt considered for comparison. .SH "OPTIONS" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\-i\fP JSON, \fB\-\-input\fP=JSON : 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 FILE, \fB\-\-input\fP=FILE : 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 .SH "EXAMPLES" .sp Generate a key and modify optional metadata then test equality: .sp .if n .RS 4 .nf .fam C $ jose jwk gen \-i \*(Aq{"alg":"ES256"}\*(Aq \-o key.jwk $ jose fmt \-j key.jwk \-Od alg \-o mod.jwk $ jose jwk eql \-i key.jwk \-i mod.jwk $ echo $? 0 .fam .fi .if n .RE .SH "AUTHOR" .sp Nathaniel McCallum \c .MTO "npmccallum\(atredhat.com" "" "" .SH "SEE ALSO" .sp .URL "jose\-jwk\-thp.1.adoc" "\fBjose\-jwk\-thp\fP(1)" ""