From 8af6b0d1f6fd0465bb9662c495217f113457f79e Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 31 Jul 2018 15:41:10 -0400 Subject: [PATCH] Fix condition check for replacing the chainfile statement in vhost templates --- bureau/class/m_ssl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_ssl.php b/bureau/class/m_ssl.php index 73229021..dcae0c9f 100644 --- a/bureau/class/m_ssl.php +++ b/bureau/class/m_ssl.php @@ -627,7 +627,7 @@ SELECT ?,?,?, FROM_UNIXTIME(?), FROM_UNIXTIME(?), ?, ?, sslcsr FROM certificate $s = file_get_contents($TARGET_FILE); $s = str_replace("%%CRT%%", $cert["crt"], $s); $s = str_replace("%%KEY%%", $cert["key"], $s); - if (isset($cert["sslchain"]) && $cert["sslchain"]) { + if (isset($cert["chain"]) && $cert["chain"]) { $s = str_replace("%%CHAINLINE%%", "SSLCertificateChainFile " . $cert["chain"], $s); } else { $s = str_replace("%%CHAINLINE%%", "", $s);