jose-jwk-pub.1 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .\" generated with Ronn/v0.7.3
  2. .\" http://github.com/rtomayko/ronn/tree/0.7.3
  3. .
  4. .TH "JOSE\-JWK\-PUB" "1" "June 2017" "" ""
  5. .
  6. .SH "NAME"
  7. \fBjose\-jwk\-pub\fR \- Cleans private keys from a JWK
  8. .
  9. .SH "SYNOPSIS"
  10. \fBjose jwk pub\fR \-i JWK [\-o JWK]
  11. .
  12. .SH "OVERVIEW"
  13. The \fBjose jwk pub\fR command removes all private key material from one or more JWK(Set) inputs\. The output will contain only public key material\.
  14. .
  15. .P
  16. If the JWK contains the "key_ops" property, it will be automatically adjusted to include only operations relevant to public keys\.
  17. .
  18. .SH "OPTIONS"
  19. .
  20. .TP
  21. \fB\-i\fR \fIJSON\fR, \fB\-\-input\fR=\fIJSON\fR
  22. Parse JWK(Set) from JSON
  23. .
  24. .TP
  25. \fB\-i\fR \fIFILE\fR, \fB\-\-input\fR=\fIFILE\fR
  26. Read JWK(Set) from FILE
  27. .
  28. .TP
  29. \fB\-i\fR \-, \fB\-\-input\fR=\-
  30. Read JWK(Set) from standard input
  31. .
  32. .TP
  33. \fB\-o\fR \fIFILE\fR, \fB\-\-output\fR=\fIFILE\fR
  34. Write JWK(Set) to FILE
  35. .
  36. .TP
  37. \fB\-o\fR \-, \fB\-\-output\fR=\-
  38. Write JWK(Set) to standard input
  39. .
  40. .TP
  41. \fB\-s\fR, \fB\-\-set\fR
  42. Always output a JWKSet
  43. .
  44. .SH "EXAMPLES"
  45. Clean private key material from a JWK:
  46. .
  47. .IP "" 4
  48. .
  49. .nf
  50. $ jose jwk gen \-i \'{"alg":"ES256"}\' \-o prv\.jwk
  51. $ cat prv\.jwk
  52. {"alg":"ES256","crv":"P\-256","key_ops":["sign","verify"],"kty":"EC", \.\.\.}
  53. $ jose jwk pub \-i prv\.jwk \-o pub\.jwk
  54. $ cat pub\.jwk
  55. {"alg":"ES256","crv":"P\-256","key_ops":["verify"],"kty":"EC", \.\.\.}
  56. .
  57. .fi
  58. .
  59. .IP "" 0
  60. .
  61. .SH "AUTHOR"
  62. Nathaniel McCallum <npmccallum@redhat\.com>
  63. .
  64. .SH "SEE ALSO"
  65. \fBjose\-alg\fR(1), \fBjose\-jwe\-enc\fR(1), \fBjose\-jwk\-exc\fR(1), \fBjose\-jwk\-gen\fR(1), \fBjose\-jwk\-thp\fR(1), \fBjose\-jwk\-use\fR(1), \fBjose\-jws\-ver\fR(1)