Skip to content

Instantly share code, notes, and snippets.

@amdelamar
Last active December 13, 2017 16:43
Show Gist options
  • Save amdelamar/f756908b1480017fa3985756bfdaa047 to your computer and use it in GitHub Desktop.
Save amdelamar/f756908b1480017fa3985756bfdaa047 to your computer and use it in GitHub Desktop.
Generates 2048bit RSA keypair
#!/usr/bin/env sh
# Generates 2048bit RSA keypair
openssl genpkey -algorithm RSA -out jwt_private_key.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -pubout -in jwt_private_key.pem -out jwt_public_key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment