Misnamed cert
This commit is contained in:
parent
c1afe00074
commit
1fa089709e
|
@ -114,14 +114,14 @@ if ! which openssl > /dev/null ;then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CERTFILE=$HOSTNAME
|
CERTFILE=$HOSTNAME
|
||||||
if [[ $EXTENSIONS != "" ]]; then
|
if [[ $ORGANISATION == "Freedombone-CA" ]]; then
|
||||||
CERTFILE="ca-$HOSTNAME"
|
CERTFILE="ca-$HOSTNAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
openssl req -x509 $EXTENSIONS -nodes -days 3650 -sha256 \
|
openssl req -x509 $EXTENSIONS -nodes -days 3650 -sha256 \
|
||||||
-subj "/O=$ORGANISATION/OU=$UNIT/C=$COUNTRY_CODE/ST=$AREA/L=$LOCATION/CN=$HOSTNAME" \
|
-subj "/O=$ORGANISATION/OU=$UNIT/C=$COUNTRY_CODE/ST=$AREA/L=$LOCATION/CN=$HOSTNAME" \
|
||||||
-newkey rsa:4096 -keyout /etc/ssl/private/$CERTFILE.key \
|
-newkey rsa:4096 -keyout /etc/ssl/private/$CERTFILE.key \
|
||||||
-out /etc/ssl/certs/$HOSTNAME.crt
|
-out /etc/ssl/certs/$CERTFILE.crt
|
||||||
if [ ! $NODH ]; then
|
if [ ! $NODH ]; then
|
||||||
openssl dhparam -check -text -5 1024 -out /etc/ssl/certs/$CERTFILE.dhparam
|
openssl dhparam -check -text -5 1024 -out /etc/ssl/certs/$CERTFILE.dhparam
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue