1
0

jose-jwk-thp.1.adoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. jose-jwk-thp(1)
  2. ===============
  3. :doctype: manpage
  4. == NAME
  5. jose-jwk-thp - Calculates the JWK thumbprint
  6. == SYNOPSIS
  7. *jose jwk thp* -i JWK [-H ALG] [-o THP]
  8. == OVERVIEW
  9. The *jose jwk thp* command calculates the thumbprint of one or more JWKs.
  10. == OPTIONS
  11. * *-i* _JSON_, *--input*=_JSON_ :
  12. Parse JWK(Set) from JSON
  13. * *-i* _FILE_, *--input*=_FILE_ :
  14. Read JWK(Set) from FILE
  15. * *-i* -, *--input*=- :
  16. Read JWK(Set) standard input
  17. * *-a* _ALG_, *--algorithm*=_ALG_ :
  18. Use the specified hash algorithm (case sensitive)
  19. * *-a* ?, *--algorithm*=? :
  20. List available hash algorithms
  21. * *-o* _FILE_, *--output*=_FILE_ :
  22. Write thumbprint(s) to FILE
  23. * *-o* -, *--output*=- :
  24. Write thumbprint(s) to standard input
  25. * *-f* _THP_, *--find*=_THP_ :
  26. Search input keys for JWK with the given thumbprint
  27. == EXAMPLES
  28. Calculate the S1 thumbprint of a newly generated key:
  29. $ jose jwk gen -i '{"alg":"ES256"}' -a S1 | jose jwk thp -i-
  30. BzmSH6W8a8LlbQ1mD0iBJdYj4x4
  31. Calculate the S256 thumbprints of a JWKSet containing two keys:
  32. $ jose jwk thp -i keys.jwkset -a S256
  33. 6HJwXEuRh8gAkTz4BodEvcEj_KXkgjc-7Qez3d4VNMs
  34. jo_j_O5gqYpKcZKHPp3miTszAeV60MXHvdb_kkjjTWE
  35. Find the input key with the given thumbprint:
  36. $ jose jwk thp -i keys.jwkset -f HYRNOxxOOHap0amTONoy1bHnS5M -o key.jwk
  37. == AUTHOR
  38. Nathaniel McCallum <npmccallum@redhat.com>
  39. == SEE ALSO
  40. link:jose-alg.1.adoc[*jose-alg*(1)],
  41. link:jose-jwk-gen.1.adoc[*jose-jwk-gen*(1)],