Skip to content

Commit 742efc1

Browse files
authored
Fix DOMAIN_CHAIN_LOCATION to copy correct file
When FULL_CHAIN_INCLUDE_ROOT is set, DOMAIN_CHAIN_LOCATION was sending just the intermediate and server cert. Copying $FULL_CHAIN instead of $CERT_FILE+$CA_CERT fixes this.
1 parent 8103b10 commit 742efc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getssl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ cert_install() { # copy certs to the correct location (creating concatenated fi
438438
else
439439
to_location="${DOMAIN_CHAIN_LOCATION}"
440440
fi
441-
cat "$CERT_FILE" "$CA_CERT" > "$TEMP_DIR/${DOMAIN}_chain.pem"
441+
cat "$FULL_CHAIN" > "$TEMP_DIR/${DOMAIN}_chain.pem"
442442
copy_file_to_location "full chain" "$TEMP_DIR/${DOMAIN}_chain.pem" "$to_location"
443443
if [[ "$DUAL_RSA_ECDSA" == "true" ]]; then
444444
cat "${CERT_FILE%.*}.ec.crt" "${CA_CERT%.*}.ec.crt" > "$TEMP_DIR/${DOMAIN}_chain.pem.ec"

0 commit comments

Comments
 (0)