Created
January 28, 2013 19:13
-
-
Save etobi/4658170 to your computer and use it in GitHub Desktop.
Caretaker: generate public/private keypair for caretaker_instance
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/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