Created
July 9, 2013 05:10
-
-
Save anonymous/5954872 to your computer and use it in GitHub Desktop.
Init script for hybrid encryption.
This file contains 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 | |
sudo apt-get install sharutils openssl -y | |
KEYNAME=$1 | |
openssl genrsa -out ${KEYNAME}.pem 2048 | |
openssl rsa -in ${KEYNAME}.pem -out ${KEYNAME}.pub -outform PEM -pubout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment