security/acme-client: fix creation of nsupdate secrets file

This commit is contained in:
Frank Wall
2020-11-22 00:03:40 +01:00
parent 828ced9afa
commit 078257cdb3
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -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:
@@ -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