Skip to content

Instantly share code, notes, and snippets.

@aprilmintacpineda
Forked from ygotthilf/jwtRS256.sh
Last active January 25, 2020 04:41
Show Gist options
  • Save aprilmintacpineda/baa777820819c14cae26d795517eb87e to your computer and use it in GitHub Desktop.
Save aprilmintacpineda/baa777820819c14cae26d795517eb87e to your computer and use it in GitHub Desktop.
How to generate JWT RS256 key
# Don't add passphrase
ssh-keygen -t rsa -b 4096 -m PEM -f jwt.key
openssl rsa -in jwt.key -pubout -outform PEM -out jwt.pub
# remove the jwt.key.pub you don't need it
rm -rf jwt.key.pub
cat jwt.key
cat jwt.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment