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

openssl genrsa -des3 -out ca.key 1024

if [ $? = 0 ]; then
    echo
    echo "Please back up your ca.key file to a safe location and"
    echo "remember your pass phrase."
    echo
    echo "You can next create a self-signed CA certificate using"
    echo "./make_ca_cert."
else
    echo
    echo "Your CA Private Key was net generated.  You may have reentered"
    echo "your pass phrase incorrectly.  Please try again"
fi
