Skip to content

Instantly share code, notes, and snippets.

@kephin
Created October 24, 2019 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kephin/df884e2f6390e3d1de4fc841fbb08fcf to your computer and use it in GitHub Desktop.
Save kephin/df884e2f6390e3d1de4fc841fbb08fcf to your computer and use it in GitHub Desktop.
Generate public/private pair keys
# openssl
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -pubout -out public.pem
# ssh-keygen
ssh-keygen -t rsa -P "" -b 4096 -m PEM -f jwtRS256.key
ssh-keygen -e -m PEM -f jwtRS256.key > jwtRS256.key.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment