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:
j-ed
2020-06-30 12:56:19 +02:00
committed by Lukas Schauer
parent 7e92850957
commit 275fb40ab4

View File

@@ -1134,6 +1134,7 @@ generate_alpn_certificate() {
SUBJ="/CN=${altname}/"
[[ "${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}"
rm -f "${tmp_openssl_cnf}"
}
# Create certificate for domain(s)