-
-
Save aprilmintacpineda/baa777820819c14cae26d795517eb87e to your computer and use it in GitHub Desktop.
How to generate JWT RS256 key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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