Skip to content

Instantly share code, notes, and snippets.

@danwonghk01
Forked from ygotthilf/jwtRS256.sh
Created April 11, 2024 07:44
Show Gist options
  • Save danwonghk01/566054b516a3d38a0d1985f51e803066 to your computer and use it in GitHub Desktop.
Save danwonghk01/566054b516a3d38a0d1985f51e803066 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