From 4be09924bc9076d2a9cd90c0b34e2c20f68a3668 Mon Sep 17 00:00:00 2001
From: Benjamin Sonntag <benjamin@octopuce.fr>
Date: Tue, 24 Feb 2015 20:49:20 +0100
Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0(critical)=20SSL=20Chain=20is=20not?=
 =?UTF-8?q?=20properly=20installed?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ssl/panel/class/m_ssl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ssl/panel/class/m_ssl.php b/ssl/panel/class/m_ssl.php
index 7dd628a0..26e5e3e1 100644
--- a/ssl/panel/class/m_ssl.php
+++ b/ssl/panel/class/m_ssl.php
@@ -499,7 +499,7 @@ class m_ssl {
             $s = str_replace("%%CRT%%", $CRTDIR . "/" . $fqdn . ".crt", $s);
             $s = str_replace("%%KEY%%", $CRTDIR . "/" . $fqdn . ".key", $s);
             if (isset($cert["sslchain"]) && $cert["sslchain"]) {
-                $s = str_replace("%%CHAINLINE%%", "SSLCertificateChainFile " . $CRTDIR . "/" . $fqdn . ".crt", $s);
+                $s = str_replace("%%CHAINLINE%%", "SSLCertificateChainFile " . $CRTDIR . "/" . $fqdn . ".chain", $s);
             } else {
                 $s = str_replace("%%CHAINLINE%%", "", $s);
             }