Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 871 Bytes

File metadata and controls

41 lines (28 loc) · 871 Bytes

Token-CLI

image

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 help

Docker

It is recommended to use docker to run the cli. To build the docker image run the following command

  docker build -t token-cli .

Usage

creating key pair

token-cli generate-key --kid avi -p /tmp

signing jwt

JWT=$(token-cli generate-token -f  -c aviltd -o http://avi.io)
echo $JWT

verifing jwt

token-cli verify -f /tmp/privateKey.jwk -t $(JWT}