-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failing on secp256r1 curve #362
Comments
Running into this issue as well. We have a stored key generated using My understanding is that |
Think you're right. openssl describes the two curves like this:
I might take a look at this at some point. |
But hmm Should all 3 curves |
According to https://tools.ietf.org/search/rfc4492#appendix-A, |
This was a pretty interesting and easy read on the subject: https://www.johndcook.com/blog/2018/08/21/a-tale-of-two-elliptic-curves/ I think you're right, lets keep the |
Think #385 should fix this problem |
Closing this. The support for secp256r1 as an alias for prime256v1 was added a while ago. |
'secp256r1' curve name is not supported. Worse - it rises an ambiguous message: "payload algorithm is ES256 but signing key was provided". That's because JWT::Algos::Ecdsa::NAMED_CURVES has no 'secp256r1' key.
Question: Is it deliberate or may I make a pull request to fix this (add the curve name to NAMED_CURVES and fix the exception message for future unlisted names)?
How to reproduce:
The text was updated successfully, but these errors were encountered: