@@ -136,15 +136,15 @@ jwt-rsa keygen [options]
136136
137137** Options:**
138138
139- - ` -b, --bits ` : Number of bits for the RSA key (default: 2048). Choices: 1024, 2048, 4096, 8192.
139+ - ` -b ` , ` --bits ` : Number of bits for the RSA key (default: 2048). Choices: 1024, 2048, 4096, 8192.
140140- ` --kid ` : Key ID. If not provided, one will be generated.
141- - ` -a, --algorithm ` : Algorithm to use (` RS256 ` , ` RS384 ` , ` RS512 ` ). Default: ` RS512 ` .
142- - ` -u, --use ` : Key usage (` sig ` for signature, ` enc ` for encryption). Default: ` sig ` .
143- - ` -o, --format ` : Output format (` pem ` , ` jwk ` , ` base64 ` ). Default: ` jwk ` .
144- - ` -r, --raw ` : Output raw JSON without indentation.
145- - ` -k, --save-public ` : Path to save the public key.
146- - ` -K, --save-private ` : Path to save the private key.
147- - ` -f, --force ` : Overwrite existing keys if they exist.
141+ - ` -a ` , ` --algorithm ` : Algorithm to use (` RS256 ` , ` RS384 ` , ` RS512 ` ). Default: ` RS512 ` .
142+ - ` -u ` , ` --use ` : Key usage (` sig ` for signature, ` enc ` for encryption). Default: ` sig ` .
143+ - ` -o ` , ` --format ` : Output format (` pem ` , ` jwk ` , ` base64 ` ). Default: ` jwk ` .
144+ - ` -r ` , ` --raw ` : Output raw JSON without indentation.
145+ - ` -k ` , ` --save-public ` : Path to save the public key.
146+ - ` -K ` , ` --save-private ` : Path to save the private key.
147+ - ` -f ` , ` --force ` : Overwrite existing keys if they exist.
148148
149149** Examples:**
150150
@@ -212,8 +212,8 @@ jwt-rsa testkey -K PRIVATE_KEY_PATH -k PUBLIC_KEY_PATH
212212
213213** Options:**
214214
215- - ` -K, --private-key` : Path to the private key (required).
216- - ` -k, --public-key` : Path to the public key (required).
215+ - ` -K` , ` --private-key` : Path to the private key (required).
216+ - ` -k` , ` --public-key` : Path to the public key (required).
217217
218218** Examples:**
219219
@@ -238,9 +238,9 @@ jwt-rsa pubkey -K PRIVATE_KEY_PATH [options]
238238
239239** Options:**
240240
241- - ` -K, --private-key` : Path to the private key (required).
242- - ` -o, --format` : Output format (` pem` , ` jwk` , ` base64` ). Default: ` jwk` .
243- - ` -r, --raw` : Output raw JSON without indentation.
241+ - ` -K` , ` --private-key` : Path to the private key (required).
242+ - ` -o` , ` --format` : Output format (` pem` , ` jwk` , ` base64` ). Default: ` jwk` .
243+ - ` -r` , ` --raw` : Output raw JSON without indentation.
244244
245245** Examples:**
246246
@@ -263,11 +263,11 @@ jwt-rsa issue -K PRIVATE_KEY_PATH [options]
263263
264264** Options:**
265265
266- - ` -K, --private-key` : Path to the private JWT key (required).
266+ - ` -K` , ` --private-key` : Path to the private JWT key (required).
267267- ` --expired` : Token expiration time in seconds (default: ` 2678400` seconds, which is 31 days).
268268- ` --nbf` : " Not Before" claim in seconds (default: ` -30` ).
269- - ` -I, --no-interactive` : Disable interactive mode. By default, interactive mode is enabled.
270- - ` -e, --editor` : Editor to use in interactive mode. Defaults to the ` EDITOR` environment variable or ` vim` .
269+ - ` -I` , ` --no-interactive` : Disable interactive mode. By default, interactive mode is enabled.
270+ - ` -e` , ` --editor` : Editor to use in interactive mode. Defaults to the ` EDITOR` environment variable or ` vim` .
271271
272272** Examples:**
273273
@@ -277,7 +277,8 @@ Issue a JWT token with default expiration and interactive mode:
277277jwt-rsa issue -K ./private.pem
278278` ` `
279279
280- By default will be opened the default editor to edit the claims, the format is python dictionary, with comments and pre-filled values:
280+ By default will be opened the default editor to edit the claims, the format is python dictionary, with comments and
281+ pre-filled values:
281282
282283` ` ` python
283284# This modules functions and constants are available:
@@ -323,6 +324,8 @@ $ echo '{"foo": "bar"}' | jwt-rsa issue -K /tmp/key -I --expired 3600
323324eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJmb28iOiJiYXIiLCJleHAiOjE3Mzg2MzAwNDcsIm5iZiI6MTczNTk1MTYyN30.HRCQ
324325` ` `
325326
327+ In non interactive mode, the input must be a JSON object with the claims to issue the token.
328+
326329# ### `verify`
327330
328331Parse and verify a JWT token.
@@ -335,10 +338,10 @@ jwt-rsa verify [options] TOKEN
335338
336339** Options:**
337340
338- - ` -K, --private-key` : Path to the private key.
339- - ` -k, --public-key` : Path to the public key. If ommited, the public key will be extracted from the private key.
340- - ` -V, --no-verify` : Do not verify the token' s signature.
341- - `-I, --no-interactive`: Disable interactive mode. By default, interactive mode is enabled.
341+ - ` -K` , ` --private-key` : Path to the private key.
342+ - ` -k` , ` --public-key` : Path to the public key. If ommited, the public key will be extracted from the private key.
343+ - ` -V` , ` --no-verify` : Do not verify the token' s signature.
344+ - `-I`, ` --no-interactive`: Disable interactive mode. By default, interactive mode is enabled.
342345
343346**Examples:**
344347
@@ -369,12 +372,12 @@ jwt-rsa convert PRIVATE_KEY_PATH [options]
369372** Options:**
370373
371374- ` private_key` : Path to the source private key (positional argument).
372- - ` -k, --save-public` : Path to save the converted public key. If omitted,
375+ - ` -k` , ` --save-public` : Path to save the converted public key. If omitted,
373376 the public key will be saved to the same directory as the private key with a ` .pub` extension.
374- - ` -K, --save-private` : Path to save the converted private key.
375- - ` -o, --format` : Output format (` pem` , ` jwk` , ` base64` ). Default: ` jwk` .
376- - ` -f, --force` : Overwrite existing keys if they exist.
377- - ` -r, --raw` : Output raw JSON without indentation.
377+ - ` -K` , ` --save-private` : Path to save the converted private key.
378+ - ` -o` , ` --format` : Output format (` pem` , ` jwk` , ` base64` ). Default: ` jwk` .
379+ - ` -f` , ` --force` : Overwrite existing keys if they exist.
380+ - ` -r` , ` --raw` : Output raw JSON without indentation.
378381
379382** Examples:**
380383
0 commit comments