Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 504 Bytes
if [ ! -f "./privatekey.pem" ] || [ ! -f "./publickey.pem" ]; then
echo "./privatekey.pem and or ./publickey.pem were not found."
echo "Generating them with openssl now."
echo "These keys are generated with the pass phrase 'iloverealm'. And are NOT to be used in production"
openssl genrsa -out privatekey.pem 2048
openssl rsa -in privatekey.pem -outform PEM -passin pass:ilovesushi -pubout -out publickey.pem
echo 'There is already a privatekey.pem and publickey.pem'
You can’t perform that action at this time.