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