Added support for RSA-PSS in jwt CLI

* input key is RSA for RS* _and_ PS* algs

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
This commit is contained in:
Frederic BIDON 2019-01-03 16:53:25 +01:00
parent 3af4c746e1
commit 382e92cd09
No known key found for this signature in database
GPG Key ID: FAE956AB61DCDA59
1 changed files with 1 additions and 1 deletions

View File

@ -278,5 +278,5 @@ func isEs() bool {
} }
func isRs() bool { func isRs() bool {
return strings.HasPrefix(*flagAlg, "RS") return strings.HasPrefix(*flagAlg, "RS") || strings.HasPrefix(*flagAlg, "PS")
} }