From 37bf44991c1927913f3f9c8173e43498dc8434a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Primo=C5=BE=20Koro=C5=A1ec?= Date: Sat, 6 Apr 2019 08:50:27 +0200 Subject: [PATCH] Fixing Typo cert should not be a constant but a 'cert' string --- .../src/opnsense/scripts/OPNsense/HAProxy/exportCerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/exportCerts.php b/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/exportCerts.php index 88644649b..ea4c086f5 100755 --- a/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/exportCerts.php +++ b/net/haproxy/src/opnsense/scripts/OPNsense/HAProxy/exportCerts.php @@ -113,7 +113,7 @@ foreach ($configNodes as $key => $value) { continue; } // check if a default certificate is configured - if (($type == cert) and isset($child->ssl_default_certificate) and (string)$child->ssl_default_certificate != "") { + if (($type == 'cert') and isset($child->ssl_default_certificate) and (string)$child->ssl_default_certificate != "") { $default_cert = (string)$child->ssl_default_certificate; $default_cert_filename = $export_path . $default_cert . ".pem"; // ensure that the default certificate is the first entry on the list