From a08317ab0ce990909dfaf05224f82893b6254273 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Fri, 25 Sep 2020 22:57:24 +0200 Subject: [PATCH] security/acme-client: fix update of existing cert (regression) --- .../mvc/app/library/OPNsense/AcmeClient/LeCertificate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/acme-client/src/opnsense/mvc/app/library/OPNsense/AcmeClient/LeCertificate.php b/security/acme-client/src/opnsense/mvc/app/library/OPNsense/AcmeClient/LeCertificate.php index 62513a718..8928ba462 100644 --- a/security/acme-client/src/opnsense/mvc/app/library/OPNsense/AcmeClient/LeCertificate.php +++ b/security/acme-client/src/opnsense/mvc/app/library/OPNsense/AcmeClient/LeCertificate.php @@ -221,7 +221,7 @@ class LeCertificate extends LeCommon // Check if cert was previously imported if (!empty((string)$this->config->certRefId)) { // Check if the previously imported certificate can still be found - foreach (Config::getInstance()->object()->ca as $cfgCert) { + foreach (Config::getInstance()->object()->cert as $cfgCert) { // Check if IDs match if ((string)$this->config->certRefId == (string)$cfgCert->refid) { $cert_found = true;