mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: fix acme.sh is always called with "--days 1", refs #4711
This commit is contained in:
@@ -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:
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user