Skip to content

Instantly share code, notes, and snippets.

Last active May 29, 2023 10:10
What would you like to do?
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out
cat jwtRS256.key
Copy link

tgirotto commented Mar 7, 2023


Copy link

itaow commented Mar 9, 2023


Copy link

I think this link resolve also this problem.
thank you.

Copy link

Thanks! What if I need to use the private key associated to a Metamask wallet to sign? Can I do it by manipulating the key or do I need another type of key altogether?

Copy link


Copy link

BTW @ygotthilf you can add -N '' to ssh keygen and will not even ask for passphrase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment