From bf4a3b03280b965921458c5ed8f0a52187d5c473 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 7 Oct 2019 21:54:01 +0200 Subject: [PATCH] security/acme-client: follow-ups for previous --- .../AcmeClient/Api/ActionsController.php | 47 +++++++++---------- .../OPNsense/AcmeClient/certhelper.php | 4 +- 2 files changed, 25 insertions(+), 26 deletions(-) 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']; } }