Merge pull request #362 from aboodman/patch-1

Clarify expected format for key files.
This commit is contained in:
Dave Grijalva 2020-01-06 17:26:35 -08:00 committed by GitHub
commit b08b43b479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ The following will create and sign a token, then verify it and output the origin
echo {\"foo\":\"bar\"} | ./jwt -key ../../test/sample_key -alg RS256 -sign - | ./jwt -key ../../test/sample_key.pub -alg RS256 -verify - echo {\"foo\":\"bar\"} | ./jwt -key ../../test/sample_key -alg RS256 -sign - | ./jwt -key ../../test/sample_key.pub -alg RS256 -verify -
Key files should be in PEM format. Other formats are not supported by this tool.
To simply display a token, use: To simply display a token, use:
echo $JWT | ./jwt -show - echo $JWT | ./jwt -show -