jose-jwk-pub.1.adoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. jose-jwk-pub(1)
  2. ===============
  3. :doctype: manpage
  4. == NAME
  5. jose-jwk-pub - Cleans private keys from a JWK
  6. == SYNOPSIS
  7. *jose jwk pub* -i JWK [-o JWK]
  8. == OVERVIEW
  9. The *jose jwk pub* command removes all private key material from one or more
  10. JWK(Set) inputs. The output will contain only public key material.
  11. If the JWK contains the "key_ops" property, it will be automatically adjusted
  12. to include only operations relevant to public keys.
  13. == OPTIONS
  14. * *-i* _JSON_, *--input*=_JSON_ :
  15. Parse JWK(Set) from JSON
  16. * *-i* _FILE_, *--input*=_FILE_ :
  17. Read JWK(Set) from FILE
  18. * *-i* -, *--input*=- :
  19. Read JWK(Set) from standard input
  20. * *-o* _FILE_, *--output*=_FILE_ :
  21. Write JWK(Set) to FILE
  22. * *-o* -, *--output*=- :
  23. Write JWK(Set) to standard input
  24. * *-s*, *--set* :
  25. Always output a JWKSet
  26. == EXAMPLES
  27. Clean private key material from a JWK:
  28. $ jose jwk gen -i '{"alg":"ES256"}' -o prv.jwk
  29. $ cat prv.jwk
  30. {"alg":"ES256","crv":"P-256","key_ops":["sign","verify"],"kty":"EC", ...}
  31. $ jose jwk pub -i prv.jwk -o pub.jwk
  32. $ cat pub.jwk
  33. {"alg":"ES256","crv":"P-256","key_ops":["verify"],"kty":"EC", ...}
  34. == AUTHOR
  35. Nathaniel McCallum <npmccallum@redhat.com>
  36. == SEE ALSO
  37. link:jose-alg.1.adoc[*jose-alg*(1)],
  38. link:jose-jwe-enc.1.adoc[*jose-jwe-enc*(1)],
  39. link:jose-jwk-exc.1.adoc[*jose-jwk-exc*(1)],
  40. link:jose-jwk-gen.1.adoc[*jose-jwk-gen*(1)],
  41. link:jose-jwk-thp.1.adoc[*jose-jwk-thp*(1)],
  42. link:jose-jwk-use.1.adoc[*jose-jwk-use*(1)],
  43. link:jose-jws-ver.1.adoc[*jose-jws-ver*(1)]