Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2013 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5954872 to your computer and use it in GitHub Desktop.
Save anonymous/5954872 to your computer and use it in GitHub Desktop.
Init script for hybrid encryption.
#!/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