Created
October 27, 2016 14:45
-
-
Save rbrooks/bdca0cd7801fe4d68f24e9f0c7422180 to your computer and use it in GitHub Desktop.
Create Public/Private keypair in PEM format for JWTs
This file contains hidden or 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
# ssh-keygen creates Keys that aren't in PEM format, but JWT tokens mandate | |
# PEM format. So, we have to convert them with OpenSSL. | |
ssh-keygen -t rsa -b 4096 -f jwtRS256.key | |
# Press Enter when prompted for 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