Skip to content

Commit

Permalink
fixing added space
Browse files Browse the repository at this point in the history
  • Loading branch information
cviecco committed Mar 7, 2021
1 parent d596d76 commit 7d2c0ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/certgen/certgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,15 @@ func GetSignerFromPEMBytes(privateKey []byte) (crypto.Signer, error) {
return nil, err
}
switch v := parsedIface.(type) {
case *ed25519.PrivateKey:
return v, nil
case *rsa.PrivateKey:
return v, nil
case *ecdsa.PrivateKey:
return v, nil
case *ed25519.PrivateKey:
return v, nil
default:
return nil, fmt.Errorf("Type not recognized %T!\n", v)
}

default:
err := errors.New("Cannot process that key")
return nil, err
Expand Down

0 comments on commit 7d2c0ae

Please sign in to comment.