Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 504 Bytes
#!/bin/bash
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
else
echo 'There is already a privatekey.pem and publickey.pem'
fi
You can’t perform that action at this time.