Fixes jwt command to support EdDSA algorithm (#118)

Fixes
```
$ echo '{"foo":"bar"}' | jwt -key test/ed25519-private.pem -alg EdDSA -sign -
Error: error signing token: key is of invalid type
```

Signed-off-by: Alexander Yastrebov <yastrebov.alex@gmail.com>
This commit is contained in:
Alexander Yastrebov 2021-11-03 14:14:30 +01:00 committed by GitHub
parent a2aa655627
commit 9c3665f0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ func isRs() bool {
}
func isEd() bool {
return strings.HasPrefix(strings.ToUpper(*flagAlg), "Ed")
return *flagAlg == "EdDSA"
}
type ArgList map[string]string