Misnamed cert
This commit is contained in:
parent
c1afe00074
commit
1fa089709e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue