Misnamed cert

This commit is contained in:
Bob Mottram 2015-06-19 22:15:41 +01:00
parent c1afe00074
commit 1fa089709e
1 changed files with 2 additions and 2 deletions

View File

@ -114,14 +114,14 @@ if ! which openssl > /dev/null ;then
fi
CERTFILE=$HOSTNAME
if [[ $EXTENSIONS != "" ]]; then
if [[ $ORGANISATION == "Freedombone-CA" ]]; then
CERTFILE="ca-$HOSTNAME"
fi
openssl req -x509 $EXTENSIONS -nodes -days 3650 -sha256 \
-subj "/O=$ORGANISATION/OU=$UNIT/C=$COUNTRY_CODE/ST=$AREA/L=$LOCATION/CN=$HOSTNAME" \
-newkey rsa:4096 -keyout /etc/ssl/private/$CERTFILE.key \
-out /etc/ssl/certs/$HOSTNAME.crt
-out /etc/ssl/certs/$CERTFILE.crt
if [ ! $NODH ]; then
openssl dhparam -check -text -5 1024 -out /etc/ssl/certs/$CERTFILE.dhparam
fi