0.4.6 • Published 20 days ago

jwks-cli v0.4.6

Weekly downloads
-
License
MIT
Repository
github
Last release
20 days ago

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
0.4.5

20 days ago

0.4.4

20 days ago

0.4.6

20 days ago

0.4.3

20 days ago

0.4.2

1 month ago

0.4.1

1 month ago

0.4.0

1 month ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago