jose-jwk-eql - Man Page

Checks if two keys are equal

Synopsis

jose jwk eql -i JWK -i JWK

Overview

The jose jwk eql 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’t considered for comparison.

Options

Examples

Generate a key and modify optional metadata then test equality:

$ jose jwk gen -i '{"alg":"ES256"}' -o key.jwk
$ jose fmt -j key.jwk -Od alg -o mod.jwk
$ jose jwk eql -i key.jwk -i mod.jwk
$ echo $?
0

Author

Nathaniel McCallum <npmccallum@redhat.com>

See Also

jose-jwk-thp(1)

Info

04/03/2024