From 275fb40ab4dd61dde4bbd383aa5efa998034d30a Mon Sep 17 00:00:00 2001 From: j-ed Date: Tue, 30 Jun 2020 12:56:19 +0200 Subject: [PATCH] removed tmp file in 'generate_alpn_certificate' function Made sure that the temp file will be removed at the end of the function. --- dehydrated | 1 + 1 file changed, 1 insertion(+) diff --git a/dehydrated b/dehydrated index 75cb3e7..75bc5d2 100755 --- a/dehydrated +++ b/dehydrated @@ -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)