jose-jwk-eql.1.adoc 906 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. jose-jwk-eql(1)
  2. ===============
  3. :doctype: manpage
  4. == NAME
  5. jose-jwk-eql - Checks if two keys are equal
  6. == SYNOPSIS
  7. *jose jwk eql* -i JWK -i JWK
  8. == OVERVIEW
  9. The *jose jwk eql* command determines whether two keys are equal. It compares
  10. the same properties defined for use in a JWK thumbprint (RFC 7638). This means
  11. that optional metadata isn't considered for comparison.
  12. == OPTIONS
  13. * *-i* JSON, *--input*=JSON :
  14. Parse JWK(Set) from JSON
  15. * *-i* FILE, *--input*=FILE :
  16. Read JWK(Set) from FILE
  17. * *-i* -, *--input*=- :
  18. Read JWK(Set) standard input
  19. == EXAMPLES
  20. Generate a key and modify optional metadata then test equality:
  21. $ jose jwk gen -i '{"alg":"ES256"}' -o key.jwk
  22. $ jose fmt -j key.jwk -Od alg -o mod.jwk
  23. $ jose jwk eql -i key.jwk -i mod.jwk
  24. $ echo $?
  25. 0
  26. == AUTHOR
  27. Nathaniel McCallum <npmccallum@redhat.com>
  28. == SEE ALSO
  29. link:jose-jwk-thp.1.adoc[*jose-jwk-thp*(1)]