diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index 72f226ed6a1435783d857a076a00988142684664..386c8a6abd9e08f5d3702cf5b81dab2eab171c1c 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -3047,6 +3047,8 @@ class installer_base extends stdClass { $crt_issuer = exec("openssl x509 -in ".escapeshellarg($ssl_crt_file)." -inform PEM -noout -issuer"); } + $issued_successfully = false; + if ((@file_exists($ssl_crt_file) && ($crt_subject == $crt_issuer)) || (!@is_dir($acme_cert_dir) || !@file_exists($check_acme_file) || !@file_exists($ssl_crt_file) || md5_file($check_acme_file) != md5_file($ssl_crt_file)) && $ip_address_match == true) { // This script is needed earlier to check and open http port 80 or standalone might fail @@ -3145,8 +3147,6 @@ class installer_base extends stdClass { } } - $issued_successfully = false; - // Backup existing ispserver ssl files // // We may find valid or broken symlinks or actual files here.