mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: fix creation of nsupdate secrets file
This commit is contained in:
@@ -8,6 +8,11 @@ WWW: https://github.com/acmesh-official/acme.sh
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
2.1
|
||||
|
||||
Fixed:
|
||||
* fix creation of nsupdate secrets file
|
||||
|
||||
2.0
|
||||
|
||||
Added:
|
||||
|
||||
+2
-2
@@ -39,9 +39,9 @@ class DnsNsupdate extends Base implements LeValidationInterface
|
||||
{
|
||||
public function prepare()
|
||||
{
|
||||
$configdir = (string)sprintf(self::ACME_CONFIG_DIR, $this->cert_uuid);
|
||||
$configdir = (string)sprintf(self::ACME_CONFIG_DIR, $this->cert_id);
|
||||
$secret_key_filename = "${configdir}/secret.key";
|
||||
$secret_key_data = (string)$this->config->dns_nsupdate_key . '\n';
|
||||
$secret_key_data = (string)$this->config->dns_nsupdate_key . "\n";
|
||||
file_put_contents($secret_key_filename, $secret_key_data);
|
||||
|
||||
// Add env variables
|
||||
|
||||
Reference in New Issue
Block a user