-
-
Save iwatakeshi/1543f5c8a80ea5f69cc9c45df1843cdd to your computer and use it in GitHub Desktop.
How to generate JWT RS256 key
This file contains 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
# https://gist.github.com/ygotthilf/baa58da5c3dd1f69fae9#gistcomment-2932501 | |
# 2048 bits | |
openssl genrsa -out private.pem 2048 | |
openssl rsa -in private.pem -pubout -out public.pem | |
# 4096 bits | |
openssl genrsa -out private.pem 4096 | |
openssl rsa -in private.pem -pubout -out public.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment