Skip to content

MapColonies/token-cli

Repository files navigation

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}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors