Skip to content

Instantly share code, notes, and snippets.

@hihebark
Forked from ygotthilf/jwtRS256.sh
Last active January 9, 2021 20:08
Show Gist options
  • Save hihebark/cd2f5df90cf184896bfbfafef1ad934b to your computer and use it in GitHub Desktop.
Save hihebark/cd2f5df90cf184896bfbfafef1ad934b to your computer and use it in GitHub Desktop.
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f private.jwt.key
# Don't add passphrase
openssl rsa -in private.jwt.key -pubout -outform PEM -out public.jwt.key.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment