diff --git a/jwk/helper.go b/jwk/helper.go index b435f7f7cb..3a99b4b846 100644 --- a/jwk/helper.go +++ b/jwk/helper.go @@ -72,7 +72,7 @@ func GetOrGenerateKeys(ctx context.Context, r InternalRegistry, m Manager, set, return nil, err } - privKey, err := FindPrivateKey(keys) + privKey, err = FindPrivateKey(keys) if err != nil { return nil, err }