mirror of https://github.com/golang-jwt/jwt.git
Clarify expected format for key files.
This commit is contained in:
parent
5e25c22bd5
commit
195174e229
|
@ -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 -
|
||||
|
||||
Key files should be in PEM format. Other formats are not supported by this tool.
|
||||
|
||||
To simply display a token, use:
|
||||
|
||||
echo $JWT | ./jwt -show -
|
||||
|
|
Loading…
Reference in New Issue