Skip to content

Instantly share code, notes, and snippets.

@devarda
Forked from ygotthilf/jwtRS256.sh
Created February 12, 2020 22:03
Show Gist options
  • Save devarda/72b9631f62fd16afc5c4e3a379ced9e4 to your computer and use it in GitHub Desktop.
Save devarda/72b9631f62fd16afc5c4e3a379ced9e4 to your computer and use it in GitHub Desktop.
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 jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment