]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
removed tmp file in 'generate_alpn_certificate' function
authorj-ed <juergen@eisfair.org>
Tue, 30 Jun 2020 10:56:19 +0000 (12:56 +0200)
committerLukas Schauer <lukas@schauer.so>
Sun, 5 Jul 2020 19:41:12 +0000 (21:41 +0200)
Made sure that the temp file will be removed at the end of the function.

dehydrated

index 75cb3e7a338b9de69e75dc346d82f159d07e6adf..75bc5d24565367ca18b941bf30bdfa6ce5564cb9 100755 (executable)
@@ -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)