Skip to content

Instantly share code, notes, and snippets.

@iwatakeshi
Forked from ygotthilf/jwtRS256.sh
Last active October 14, 2020 04:32
Show Gist options
  • Save iwatakeshi/1543f5c8a80ea5f69cc9c45df1843cdd to your computer and use it in GitHub Desktop.
Save iwatakeshi/1543f5c8a80ea5f69cc9c45df1843cdd to your computer and use it in GitHub Desktop.
How to generate JWT RS256 key
# 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