Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

ParseRSAPublicKeyFromPEM returns wrong error ErrNotRSAPrivateKey (copy+paste issue?) #135

Closed
jonathaningram opened this issue May 4, 2016 · 1 comment

Comments

@jonathaningram
Copy link

See https://github.com/dgrijalva/jwt-go/blob/master/rsa_utils.go#L64

It is:

return nil, ErrNotRSAPrivateKey

Should it be another new error type ErrNotRSAPublicKey?

@dgrijalva
Copy link
Owner

Yep. That's definitely a bug. Thanks for reporting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants