Created
March 21, 2018 15:41
-
-
Save greenbicycle/83448beeb00feb7894c74d0c14b4000d to your computer and use it in GitHub Desktop.
generate-key-pair
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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