Don't quote extensions

This commit is contained in:
Bob Mottram 2018-03-04 11:38:02 +00:00
parent 978f848350
commit f1f789415e
1 changed files with 2 additions and 1 deletions

View File

@ -310,7 +310,8 @@ function add_cert_selfsigned {
CERTFILE="ca-$HOSTNAME"
fi
openssl req -x509 "${EXTENSIONS}" -nodes -days 3650 -sha256 \
# shellcheck disable=SC2086
openssl req -x509 ${EXTENSIONS} -nodes -days 3650 -sha256 \
-subj "/O=$ORGANISATION/OU=$UNIT/C=$COUNTRY_CODE/ST=$AREA/L=$LOCATION/CN=$HOSTNAME" \
-newkey rsa:2048 -keyout "/etc/ssl/private/${CERTFILE}.key" \
-out "/etc/ssl/certs/${CERTFILE}.crt"