security/acme-client: fix acme.sh is always called with "--days 1", refs #4711

This commit is contained in:
Frank Wall
2025-06-16 18:00:13 +02:00
parent 1df2eba6c2
commit 200436b06e
3 changed files with 9 additions and 3 deletions
+5
View File
@@ -8,6 +8,11 @@ WWW: https://github.com/acmesh-official/acme.sh
Plugin Changelog
================
4.10
Fixed:
* acme.sh is always called with "--days 1" (#4711)
4.9
Added:
@@ -642,7 +642,8 @@ class LeCertificate extends LeCommon
// Configure validation object
$val->setNames($this->config->name, $this->config->altNames, $this->config->aliasmode, $this->config->domainalias, $this->config->challengealias);
$val->setRenewal((int)$this->config->renewInterval);
$renewInterval = (string)$this->config->renewInterval;
$val->setRenewal((int)$renewInterval);
$val->setForce($this->force);
$val->setOcsp((string)$this->config->ocsp == 1 ? true : false);
// strip prefix from key value
@@ -1,7 +1,7 @@
<?php
/*
* Copyright (C) 2020-2024 Frank Wall
* Copyright (C) 2020-2025 Frank Wall
* Copyright (C) 2018 Deciso B.V.
* Copyright (C) 2018 Franco Fichtner <franco@opnsense.org>
* All rights reserved.
@@ -286,6 +286,6 @@ abstract class Base extends \OPNsense\AcmeClient\LeCommon
*/
public function setRenewal(int $interval = 60)
{
$this->acme_args[] = LeUtils::execSafe('--days %s', (string)$interval);
$this->acme_args[] = LeUtils::execSafe('--days %s', $interval);
}
}