image taken by William Warby
This is a simple CLI for interacting with keys and JWT. It lets you create cryptographic key pairs, signing JWT tokens, and verifing them.
For more detailed help please use the help command in the CLI.
token-cli helpIt is recommended to use docker to run the cli. To build the docker image run the following command
docker build -t token-cli .token-cli generate-key --kid avi -p /tmpJWT=$(token-cli generate-token -f -c aviltd -o http://avi.io)
echo $JWTtoken-cli verify -f /tmp/privateKey.jwk -t $(JWT}