Skip to content

Instantly share code, notes, and snippets.

@TrueType
Created October 7, 2014 09:34
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 TrueType/c6a7953078b67adac713 to your computer and use it in GitHub Desktop.
Save TrueType/c6a7953078b67adac713 to your computer and use it in GitHub Desktop.
#!/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