]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Only check existing certs when necessary
authorStefaan Ghysels <stefaang@gmail.com>
Mon, 26 Aug 2019 08:28:01 +0000 (10:28 +0200)
committerLukas Schauer <lukas@schauer.dev>
Sun, 31 Oct 2021 18:29:00 +0000 (19:29 +0100)
dehydrated

index d9989017184bb514864e28742837709a25fc65b3..8fe232bff7fa51c3c5ff77b8917f579fff8e9e9a 100755 (executable)
@@ -1662,7 +1662,7 @@ command_sign_domains() {
     fi
 
     # Check domain names of existing certificate
-    if [[ -e "${cert}" ]]; then
+    if [[ -e "${cert}" && "${force_renew}" = "no" ]]; then
       printf " + Checking domain name(s) of existing cert..."
 
       certnames="$("${OPENSSL}" x509 -in "${cert}" -text -noout | grep DNS: | _sed 's/DNS://g' | tr -d ' ' | tr ',' '\n' | sort -u | tr '\n' ' ' | _sed 's/ $//')"