File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ generate_temp_cert () {
13
13
-sha256 \
14
14
-days 3650 \
15
15
-nodes \
16
- -out ${1} /fullchain.crt \
17
- -keyout ${1} .key \
18
- -subj " /C=NA/ST=NA/L=NA/O=NA/OU=NA/CN=${2 } "
16
+ -out ${1} \
17
+ -keyout ${2} \
18
+ -subj " /C=NA/ST=NA/L=NA/O=NA/OU=NA/CN=${3 } "
19
19
20
20
}
21
21
@@ -43,7 +43,6 @@ setup_ssl () {
43
43
# set default values
44
44
local SANS=$( printf " ,%s" ${DOMAIN_ALIASES[@]} )
45
45
local CERT=${SSL_CERTS} /${DOMAIN_NAME}
46
- local FULLCHAIN=${CERT} /fullchain
47
46
local ACL_DIR=" '${WWW_ACME_CHALLENGE} '"
48
47
local ACL_RPT=$(( ${# DOMAIN_ALIASES[@]} + 1 ))
49
48
local ACL=$( yes ${ACL_DIR} | head -n ${ACL_RPT} | sed -n ' H;${x;s/\n/ /gp}' )
@@ -55,6 +54,7 @@ setup_ssl () {
55
54
replace_d " ACL" " (${ACL} )" ${FILE}
56
55
57
56
# create self-signed certificate so nginx will start before we request proper certificates
58
- generate_temp_cert ${CERT} ${DOMAIN_NAME}
57
+ generate_temp_cert ${CERT} /fullchain.crt ${CERT} .key ${DOMAIN_NAME}
58
+ generate_temp_cert ${CERT} /chain.crt ${CERT} /chain.key ${DOMAIN_NAME}
59
59
60
60
}
You can’t perform that action at this time.
0 commit comments