You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pasted the private key into the jwt.io debugger with the PS256 algorithm selected.
Pasted the PEM-format public key into the debugger and received a signature verification failed message.
Key encoded using ssh-keygen -f key.pub -e -m pem
Confused.
Realized key needed to be encoded in PKCS8.
Requested Changes
Clarify what format the public key needs to be in, either in the input field or in the signature verification failed message. As-is, I don't believe this information is conveyed anywhere, and the input field simply states to use "plain text".
The text was updated successfully, but these errors were encountered:
I was working with @feidtmb on the project where we were using this for testing generated tokens, and I think I can add a bit more detail.
As I understand it there are multiple format for RSA Public/Private keys, with the typical PEM headers (RSA) PRIVATE/PUBLIC KEY.
RSA PRIVATE KEY: PKCS#1
PRIVATE KEY: PKCS#8
RSA PUBLIC KEY: PKCS#1
PUBLIC KEY: PKIX
At least for public keys, only the latter works, though there is no useful feedback or documentation on this. I haven't experimented enough with the private keys to know what is required there.
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! 🙇♂️
What Happened
ssh-keygen -f key.pub -e -m pem
Requested Changes
Clarify what format the public key needs to be in, either in the input field or in the signature verification failed message. As-is, I don't believe this information is conveyed anywhere, and the input field simply states to use "plain text".
The text was updated successfully, but these errors were encountered: