Skip to content

Instantly share code, notes, and snippets.

@greenbicycle
Created March 21, 2018 15:41
Show Gist options
  • Save greenbicycle/83448beeb00feb7894c74d0c14b4000d to your computer and use it in GitHub Desktop.
Save greenbicycle/83448beeb00feb7894c74d0c14b4000d to your computer and use it in GitHub Desktop.
generate-key-pair
#!/bin/bash
#
# Generate key pair
# Will create 2 files:
# - private_key.pem
# - public_key.pem
#
openssl genrsa -aes256 -out private_key.pem 2048
openssl rsa -pubout -in private_key.pem -out public_key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment