diff --git a/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/Api/ActionsController.php b/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/Api/ActionsController.php index 2e55b7c997..fb965dd509 100644 --- a/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/Api/ActionsController.php +++ b/security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/Api/ActionsController.php @@ -1,33 +1,32 @@ $subject) { + if ($issuer != $subject) { $issuer_crt =& lookup_ca_by_subject($issuer); if ($issuer_crt) { $ca['caref'] = $issuer_crt['refid']; @@ -1517,7 +1517,7 @@ function local_ca_import(&$ca, $str, $key = "", $serial = 0) if (is_array($config['ca'])) { foreach ($config['ca'] as & $oca) { $issuer = cert_get_issuer($oca['crt']); - if ($ca['refid'] <> $oca['refid'] && $issuer == $subject) { + if ($ca['refid'] != $oca['refid'] && $issuer == $subject) { $oca['caref'] = $ca['refid']; } }