mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Merge pull request #2258 from fraenki/acme_250
security/acme-client: release 2.5
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= acme-client
|
||||
PLUGIN_VERSION= 2.4
|
||||
PLUGIN_VERSION= 2.5
|
||||
PLUGIN_COMMENT= Let's Encrypt client
|
||||
PLUGIN_MAINTAINER= opnsense@moov.de
|
||||
PLUGIN_DEPENDS= acme.sh py${PLUGIN_PYTHON}-dns-lexicon
|
||||
|
||||
@@ -8,6 +8,14 @@ WWW: https://github.com/acmesh-official/acme.sh
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
2.5
|
||||
|
||||
Fixed:
|
||||
* ensure that the auto renewal cron job is properly disabled (#2178)
|
||||
|
||||
Changed:
|
||||
* reload settings page to show/hide cron tab
|
||||
|
||||
2.4
|
||||
|
||||
Added:
|
||||
|
||||
+5
-1
@@ -86,6 +86,8 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
Config::getInstance()->save();
|
||||
// Refresh the crontab
|
||||
$backend->configdRun('template reload OPNsense/Cron');
|
||||
// (res)start daemon
|
||||
$backend->configdRun("cron restart");
|
||||
$result['result'] = "new";
|
||||
$result['uuid'] = $cron_uuid;
|
||||
} else {
|
||||
@@ -99,7 +101,7 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
) {
|
||||
// Get UUID, clean existin entry
|
||||
$cron_uuid = (string)$mdlAcme->settings->UpdateCron;
|
||||
$mdlAcme->settings->UpdateCron = null;
|
||||
$mdlAcme->settings->UpdateCron = "";
|
||||
$mdlCron = new Cron();
|
||||
// Delete the cronjob item
|
||||
if ($mdlCron->jobs->job->del($cron_uuid)) {
|
||||
@@ -109,6 +111,8 @@ class SettingsController extends ApiMutableModelControllerBase
|
||||
Config::getInstance()->save();
|
||||
// Regenerate the crontab
|
||||
$backend->configdRun('template reload OPNsense/Cron');
|
||||
// (res)start daemon
|
||||
$backend->configdRun("cron restart");
|
||||
$result['result'] = "deleted";
|
||||
} else {
|
||||
$result['result'] = "unable to delete cron";
|
||||
|
||||
+2
-2
@@ -101,7 +101,7 @@
|
||||
<id>certificate.domainalias</id>
|
||||
<label>Domain Alias</label>
|
||||
<type>text</type>
|
||||
<help><![CDATA[When setting DNS alias mode to "Domain Alias", enter the domain name that should be used for certificate validation. Please refer to the <a href="https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode">acme.sh documentation</a> for further information.]]></help>
|
||||
<help><![CDATA[When setting DNS alias mode to "Domain Alias", enter the domain name that should be used for certificate validation. Please refer to the <a href="https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode">acme.sh documentation</a> for further information.]]></help>
|
||||
</field>
|
||||
<field>
|
||||
<label>DNS Alias Mode</label>
|
||||
@@ -112,6 +112,6 @@
|
||||
<id>certificate.challengealias</id>
|
||||
<label>Challenge Alias</label>
|
||||
<type>text</type>
|
||||
<help><![CDATA[When setting DNS alias mode to "Challenge Alias", enter the domain name that should be used for certificate validation. Please refer to the <a href="https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode">acme.sh documentation</a> for further information.]]></help>
|
||||
<help><![CDATA[When setting DNS alias mode to "Challenge Alias", enter the domain name that should be used for certificate validation. Please refer to the <a href="https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode">acme.sh documentation</a> for further information.]]></help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
+2
-2
@@ -232,7 +232,7 @@ abstract class Base extends \OPNsense\AcmeClient\LeCommon
|
||||
$this->acme_args[] = LeUtils::execSafe('--domain %s', $certname);
|
||||
|
||||
// Main domain: Use DNS alias mode for domain validation?
|
||||
// https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode
|
||||
// https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode
|
||||
if ($this->getMethod() == 'dns01') {
|
||||
switch ((string)$aliasmode) {
|
||||
case 'automatic':
|
||||
@@ -256,7 +256,7 @@ abstract class Base extends \OPNsense\AcmeClient\LeCommon
|
||||
$this->acme_args[] = LeUtils::execSafe('--domain %s', $altname);
|
||||
|
||||
// altNames: Use DNS alias mode for domain validation?
|
||||
// https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode
|
||||
// https://github.com/acmesh-official/acme.sh/wiki/DNS-alias-mode
|
||||
if ($this->getMethod() == 'dns01') {
|
||||
switch ((string)$this->cert_aliasmode) {
|
||||
case 'automatic':
|
||||
|
||||
@@ -54,8 +54,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// Save & reconfigure acme-client to activate changes
|
||||
$("#reconfigureAct").click(function(){
|
||||
// TODO: reload the page afterwards to show/hide the "Schedule" tab
|
||||
|
||||
// set progress animation
|
||||
$('[id*="reconfigureAct_progress"]').each(function(){
|
||||
$(this).addClass("fa fa-spinner fa-pulse");
|
||||
@@ -99,6 +97,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
// when done, disable progress animation
|
||||
$('[id*="reconfigureAct_progress"]').each(function(){
|
||||
$(this).removeClass("fa fa-spinner fa-pulse");
|
||||
// reload page to show or hide links to cron edit page
|
||||
setTimeout(function () {
|
||||
window.location.reload(true)
|
||||
}, 300);
|
||||
});
|
||||
dlg.close();
|
||||
}
|
||||
@@ -132,6 +134,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
// when done, disable progress animation
|
||||
$('[id*="reconfigureAct_progress"]').each(function(){
|
||||
$(this).removeClass("fa fa-spinner fa-pulse");
|
||||
// reload page to show or hide links to cron edit page
|
||||
setTimeout(function () {
|
||||
window.location.reload(true)
|
||||
}, 300);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -246,7 +252,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
{{ lang._('Please use the %sissue tracker%s to report bugs or request new features.') | format('<a href="https://github.com/opnsense/plugins/issues">', '</a>') }}
|
||||
<br/>
|
||||
<br/>
|
||||
<p>{{ lang._('This plugin includes code from the %s project.') | format('<a href="https://github.com/Neilpang/acme.sh">Neilpang/acme.sh</a>' ) }} {{ lang._('Licensed under GPLv3.') }}<br/>{{ lang._('Let"s Encrypt(tm) is a trademark of the Internet Security Research Group. All rights reserved.') }}</p>
|
||||
<p>{{ lang._('This plugin includes code from the %s project.') | format('<a href="https://github.com/acmesh-official/acme.sh">acmesh-official/acme.sh</a>' ) }} {{ lang._('Licensed under GPLv3.') }}<br/>{{ lang._('Let"s Encrypt(tm) is a trademark of the Internet Security Research Group. All rights reserved.') }}</p>
|
||||
<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user