@agrozyme/json-web-key
v0.0.0
Published
Convert key format for JWK
Downloads
5
Readme
Json Web Key
Convert key format for JWK Support algorithm: ES256, ES256K, ES384, ES512 Support key format: raw, pem, jwk
Usage
$ npm install -g @agrozyme/json-web-key
$ json-web-key COMMAND
running command...
$ json-web-key (--version)
@agrozyme/json-web-key/0.0.0 win32-x64 node-v16.14.2
$ json-web-key --help [COMMAND]
USAGE
$ json-web-key COMMAND
...
Commands
json-web-key help [COMMAND]
json-web-key keyPair
json-web-key privateKey:convert
json-web-key privateKey:export
json-web-key publicKey:convert
json-web-key publicKey:export
json-web-key help [COMMAND]
Display help for json-web-key.
USAGE
$ json-web-key help [COMMAND] [-n]
ARGUMENTS
COMMAND Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for json-web-key.
See code: @oclif/plugin-help
json-web-key keyPair
make keypair
USAGE
$ json-web-key keyPair --type ES256|ES256K|ES384|ES512 [--debug]
FLAGS
--debug show error stack
--type=<option> (required)
<options: ES256|ES256K|ES384|ES512>
DESCRIPTION
make keypair
See code: dist/commands/keyPair.ts
json-web-key privateKey:convert
convert raw private key to other format
USAGE
$ json-web-key privateKey:convert --key <value> --format raw|jwk|pem --type ES256|ES256K|ES384|ES512 [--debug]
FLAGS
--debug show error stack
--format=<option> (required)
<options: raw|jwk|pem>
--key=<value> (required)
--type=<option> (required)
<options: ES256|ES256K|ES384|ES512>
DESCRIPTION
convert raw private key to other format
See code: dist/commands/privateKey/convert.ts
json-web-key privateKey:export
export private key file to other format
USAGE
$ json-web-key privateKey:export --fromFile <value> --toFile <value> --fromFormat raw|jwk|pem --toFormat raw|jwk|pem
--type ES256|ES256K|ES384|ES512 [--debug]
FLAGS
--debug show error stack
--fromFile=<value> (required)
--fromFormat=<option> (required)
<options: raw|jwk|pem>
--toFile=<value> (required)
--toFormat=<option> (required)
<options: raw|jwk|pem>
--type=<option> (required)
<options: ES256|ES256K|ES384|ES512>
DESCRIPTION
export private key file to other format
See code: dist/commands/privateKey/export.ts
json-web-key publicKey:convert
convert raw public key to other format
USAGE
$ json-web-key publicKey:convert --key <value> --format raw|jwk|pem --type ES256|ES256K|ES384|ES512 [--debug]
FLAGS
--debug show error stack
--format=<option> (required)
<options: raw|jwk|pem>
--key=<value> (required)
--type=<option> (required)
<options: ES256|ES256K|ES384|ES512>
DESCRIPTION
convert raw public key to other format
See code: dist/commands/publicKey/convert.ts
json-web-key publicKey:export
export public key file to other format
USAGE
$ json-web-key publicKey:export --fromFile <value> --toFile <value> --fromFormat raw|jwk|pem --toFormat raw|jwk|pem
--type ES256|ES256K|ES384|ES512 [--debug]
FLAGS
--debug show error stack
--fromFile=<value> (required)
--fromFormat=<option> (required)
<options: raw|jwk|pem>
--toFile=<value> (required)
--toFormat=<option> (required)
<options: raw|jwk|pem>
--type=<option> (required)
<options: ES256|ES256K|ES384|ES512>
DESCRIPTION
export public key file to other format
See code: dist/commands/publicKey/export.ts