Skip to content
Snippets Groups Projects
Commit 1fa08970 authored by Bob Mottram's avatar Bob Mottram
Browse files

Misnamed cert

parent c1afe000
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment