mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-19 23:11:22 +02:00
removed tmp file in 'generate_alpn_certificate' function
Made sure that the temp file will be removed at the end of the function.
This commit is contained in:
@@ -1134,6 +1134,7 @@ generate_alpn_certificate() {
|
|||||||
SUBJ="/CN=${altname}/"
|
SUBJ="/CN=${altname}/"
|
||||||
[[ "${OSTYPE:0:5}" = "MINGW" ]] && SUBJ="/${SUBJ}"
|
[[ "${OSTYPE:0:5}" = "MINGW" ]] && SUBJ="/${SUBJ}"
|
||||||
_openssl req -x509 -new -sha256 -nodes -newkey rsa:2048 -keyout "${alpncertdir}/${altname}.key.pem" -out "${alpncertdir}/${altname}.crt.pem" -subj "${SUBJ}" -extensions SAN -config "${tmp_openssl_cnf}"
|
_openssl req -x509 -new -sha256 -nodes -newkey rsa:2048 -keyout "${alpncertdir}/${altname}.key.pem" -out "${alpncertdir}/${altname}.crt.pem" -subj "${SUBJ}" -extensions SAN -config "${tmp_openssl_cnf}"
|
||||||
|
rm -f "${tmp_openssl_cnf}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create certificate for domain(s)
|
# Create certificate for domain(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user