A simple tool to for working with JWK's.
usage: josetool [<flags>] <command> [<args> ...]
jwk utilities
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
Commands:
help [<command>...]
Show help.
ecdsa [<flags>] [<curve>]
generate an ecdsa key
rsa [<flags>] [<bits>]
generate an rsa key
sign [<flags>] <key>
creates a jwt for the given inputs
usage: josetool rsa [<flags>] [<bits>]
generate an rsa key
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-a, --algorithm=RS256 the algorithm to use
-i, --key-id=KEY-ID the key id to use
-u, --use=sig how this key will be used
-f, --filename="-" the base filename to output the key to
Args:
[<bits>] the number of bits for the key
usage: josetool ecdsa [<flags>] [<curve>]
generate an ecdsa key
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-a, --algorithm=ES256 the algorithm to use
-i, --key-id=KEY-ID the key id to use
-u, --use=sig how this key will be used
-f, --filename="-" the base filename to output the key to
Args:
[<curve>] the curve to use
usage: josetool sign [<flags>] <key>
creates a jwt for the given inputs
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-H, --header=HEADER ... header to include in the jwt in key=val format
-c, --claim=CLAIM ... claims to include in the jwt in key=val format
Args:
<key> the name of the file that contains the private jwk