Skip to content

Commit 78142f2

Browse files
committed
Fix local CA
1 parent 8484a02 commit 78142f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/scripts/run_local_ca.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ if [ -f "${CONFIG_FILE}" ] && shyaml -q get-value certificates < "${CONFIG_FILE}
263263
continue
264264
fi
265265
debug "Certificate domains are is: ${domains[*]}"
266-
267266
# Assemble the list of domains to be included in the request.
268267
read -ra alt_names < <(assemble_alt_names "${domains[@]}")
269268
# Hand over all the info required for the certificate request, and
@@ -280,10 +279,9 @@ else
280279
for conf_file in /etc/nginx/conf.d/*.conf*; do
281280
parse_config_file "${conf_file}" certificates
282281
done
283-
284282
# Iterate over each key and create a signed certificate for them.
285283
for cert_name in "${!certificates[@]}"; do
286-
server_names=("${certificates["$cert_name"]}")
284+
server_names=(${certificates["$cert_name"]})
287285
# Assemble the list of domains to be included in the request.
288286
read -ra alt_names < <(assemble_alt_names "${server_names[@]}")
289287
# Hand over all the info required for the certificate request, and

0 commit comments

Comments
 (0)