Skip to content

Instantly share code, notes, and snippets.

@iamucil
Created June 7, 2020 18:19
Show Gist options
  • Save iamucil/3fe4622f528808951a86792bc962893b to your computer and use it in GitHub Desktop.
Save iamucil/3fe4622f528808951a86792bc962893b to your computer and use it in GitHub Desktop.
Creating public/private key pairs
openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -in rsa_private.pem -pubout -out rsa_pub.pem

JWT RSA Key minimum key size is 2048, for extra security increase bit lengths to 4096.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment