Skip to content

Mujo/jwks-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwks-cli

This is a cli tool to convert certificates and keys into JWK (json web key) or JWKS (json web key set) and to convert back to private and public keys.

This was created to help the setup of the Open Finance Brasil security and conformance tests, and to help the configuration of the id providers and fapi clients.

Install instructions

install jwks-cli globally:

npm i -g jwks-cli

Usage

use the help command for usage:

$ jwks -h

it returns:

Usage: jwks [options]
Options:
  -c, --cert <path>  Path to the certificate file
  -k, --key <path>   Path to the private key file
  -o, --out <type>   Output type: jwks, public (pub), private (priv)
  -j, --jwks <path>  Path to the JWKS file
  -m, --make <num>   Make <num> self signed certificates with keys
  -a, --all <folder> Make jwks from all .pem and .key pairs in folder
  -v, --version      Show version number
  -h, --help         Show this help
Examples:
  $ jwks -c cert.pem -k cert.key
  $ jwks -c cert.pem -k cert.key -o pub
  $ jwks -c cert.pem -k cert.key -o pub,jwks
  $ jwks -a
  $ jwks -a ./certs
  $ jwks -a -o pub
  $ jwks -j jwks.json
  $ jwks -j jwks.json -o pub
  $ jwks -j jwks.json -o pub,priv
  $ jwks -m 3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published