Skip to content

Instantly share code, notes, and snippets.

@etobi
Created January 28, 2013 19:13
Show Gist options
  • Save etobi/4658170 to your computer and use it in GitHub Desktop.
Save etobi/4658170 to your computer and use it in GitHub Desktop.
Caretaker: generate public/private keypair for caretaker_instance
#!/bin/sh
clear
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -out public.pem -pubout
echo
echo
echo "~~~~~~~~~~[Private Key]~~~~~~~~~~"
echo
cat private.pem | tr "\n" "|"
echo
echo
echo "~~~~~~~~~~[Public Key]~~~~~~~~~~"
echo
cat public.pem | tr "\n" "|"
echo
echo
echo
rm -f private.pem public.pem%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment