security/acme-client: fix certificate chain when CA changes, closes #2126

This commit is contained in:
Frank Wall
2020-12-03 15:47:42 +01:00
parent b16c30c9fb
commit f44af645e9
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ Added:
Fixed:
* fix creation of nsupdate secrets file
* fix certificate chain when existing cert was signed by a new CA (#2126)
2.0
@@ -262,6 +262,8 @@ class LeCertificate extends LeCommon
$cfgCert->crt = $cert['crt'];
$cfgCert->prv = $cert['prv'];
$cfgCert->descr = $cert['descr'];
// Update CA ref, because it may be signed by a different CA.
$cfgCert->caref = $cert['caref'];
break;
}
}