Skip to content
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

ES256 signature not valid #606

Open
m3co-code opened this issue Jun 17, 2022 · 6 comments
Open

ES256 signature not valid #606

m3co-code opened this issue Jun 17, 2022 · 6 comments
Assignees
Labels

Comments

@m3co-code
Copy link

Thanks for jwt.io, it's great!

I'm struggling getting the online ES256 validation working. I've generated new keys with those commands:

openssl ecparam -genkey -name prime256v1 -noout -out jwt-root.pem
openssl ec -in jwt-root.pem -pubout -out jwt-pub.pem

The freshly generated keys look like this:

-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIC+BLC97UJGWACKjo7VuhgLadfTHDUg57gB2Ye3sotBDoAoGCCqGSM49
AwEHoUQDQgAEQ4KnTJ36kQ9hoKkWCr5N6FqsfztGdTnBLMHya6A2PUEBurjU5jdb
PDzLdOqLlw8y0Nt0OxEBg0hteRDXHT8sag==
-----END EC PRIVATE KEY-----
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEQ4KnTJ36kQ9hoKkWCr5N6FqsfztG
dTnBLMHya6A2PUEBurjU5jdbPDzLdOqLlw8y0Nt0OxEBg0hteRDXHT8sag==
-----END PUBLIC KEY-----

If I input those keys on jwt.io I get "Invalid Signature". Is this a bug on jwt.io or am I doing something wrong? Thanks already!

@stale
Copy link

stale bot commented Sep 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️

@stale stale bot added the closed:stale label Sep 17, 2022
@stale stale bot closed this as completed Sep 24, 2022
@m3co-code
Copy link
Author

Ping

@mzauliczny-evo
Copy link

Hi! I recently encountered similar problem and it turned out to be an issue with Node.js version. It works with node >=16, however fails in Node14. I believe this app might be running in node 14 (as it specifies this version in .github/workflows/test.yml ).

@DanOnCall DanOnCall reopened this Jun 18, 2024
@DanOnCall DanOnCall self-assigned this Jun 18, 2024
@DanOnCall
Copy link
Contributor

Hello, all. I am one of the newly appointed maintainers for jwt.io and I am working on a new version of the site. I apologize for the lack of response. I'll ensure that we test for this in the next version.

@stale stale bot removed the closed:stale label Jun 18, 2024
@DanOnCall
Copy link
Contributor

cc @byron-okta

@DanOnCall DanOnCall added the bug label Jun 18, 2024
@apncesn
Copy link

apncesn commented Jun 25, 2024

same problem for others algorithms

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

No branches or pull requests

4 participants