Skip to content

Instantly share code, notes, and snippets.

@mcueto
Forked from ygotthilf/jwtRS256.sh
Last active May 7, 2017 21:21
Show Gist options
  • Save mcueto/26cc88f96e008f1804d54877e9520eb6 to your computer and use it in GitHub Desktop.
Save mcueto/26cc88f96e008f1804d54877e9520eb6 to your computer and use it in GitHub Desktop.
How to generate a JWT RS256 key
# Generate your private key (Don't add passphrase)
ssh-keygen -t rsa -b 4096 -f jwtRS256.key
# Generate your public key
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
# View your private key
cat jwtRS256.key
# View your public key
cat jwtRS256.key.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment