Skip to content

Instantly share code, notes, and snippets.

@0xC0A1
Forked from azanium/jwtRS512.sh
Created March 29, 2020 02:27
Show Gist options
  • Save 0xC0A1/971bf0b674e23545f73b59251ec18c1b to your computer and use it in GitHub Desktop.
Save 0xC0A1/971bf0b674e23545f73b59251ec18c1b to your computer and use it in GitHub Desktop.
How to generate JWT RS512 key
ssh-keygen -t rsa -b 4096 -e SHA512 -f jwtRS512.key
# Don't add passphrase
openssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub
cat jwtRS512.key
cat jwtRS512.key.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment