serg-kovalev/rsa2jwk

View on GitHub

Showing 1 of 1 total issue

Function RsaPemToJwk has 6 return statements (exceeds 4 allowed).
Open

func RsaPemToJwk(path, alg string) (JwkPrivAndPubKeyPairs, error) {
    jwkPrivSet := JwkPrivAndPubKeyPairs{}

    jwkSet, err := jwk.ReadFile(path, jwk.WithPEM(true))
    if err != nil {
Severity: Major
Found in rsa2jwk.go - About 40 mins to fix
    Severity
    Category
    Status
    Source
    Language