From 382e92cd0904bb813bf720ed55c6a90f7c236953 Mon Sep 17 00:00:00 2001 From: Frederic BIDON Date: Thu, 3 Jan 2019 16:53:25 +0100 Subject: [PATCH] Added support for RSA-PSS in jwt CLI * input key is RSA for RS* _and_ PS* algs Signed-off-by: Frederic BIDON --- cmd/jwt/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/jwt/app.go b/cmd/jwt/app.go index 727182a..cdf2500 100644 --- a/cmd/jwt/app.go +++ b/cmd/jwt/app.go @@ -278,5 +278,5 @@ func isEs() bool { } func isRs() bool { - return strings.HasPrefix(*flagAlg, "RS") + return strings.HasPrefix(*flagAlg, "RS") || strings.HasPrefix(*flagAlg, "PS") }