mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-03 13:59:06 -04:00
security/acme-client: style sweep
This commit is contained in:
parent
ed4c9a345b
commit
5816a72332
2 changed files with 3 additions and 2 deletions
|
|
@ -273,7 +273,7 @@ class LeCertificate extends LeCommon
|
|||
// Serialize to config and save
|
||||
// Skip validation because the current in-memory model may not
|
||||
// know about the CA item that was just created.
|
||||
$certModel->serializeToConfig(false,true);
|
||||
$certModel->serializeToConfig(false, true);
|
||||
Config::getInstance()->save();
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -532,7 +532,8 @@ function exportCertificates(array $cert_refids): array
|
|||
$item["key"] = $_tmp["prv"];
|
||||
// check if a CA is linked
|
||||
if (!empty((string)$cert->caref)) {
|
||||
$item["ca"] = $_tmp["ca"];;
|
||||
$item['ca'] = $_tmp['ca'];
|
||||
|
||||
// combine files to export a fullchain.pem
|
||||
$item["fullchain"] = $item["cert"] . $item["ca"];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue