Don't quote extensions
This commit is contained in:
parent
978f848350
commit
f1f789415e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue