#!/bin/sh
#
. config
PATH=$PATH:$SSLPATH
echo $PATH

openssl genrsa -des3 -out server.key 1024

if [ $? = 0 ]; then
    echo
    echo "Your server's private key has been created as server.key.  Please"
    echo "back up this file to a safe place"
    echo
    echo "Leave a copy server.key in this directory and run ./make_csr to"
    echo "generate a Certificate Signing Request."
else
    echo
    echo "Key generation failed.  You may have entered your pass"
    echo "phrase incorrectly.  Please try again!"
fi

