Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ EOF;
}

$acmechalengedom = (substr($nsupdatedomain, 0, 2) === "*.") ? substr($nsupdatedomain, 2) : $nsupdatedomain;
file_put_contents("{$nsupdatefileprefix}_acme-challenge.{$acmechalengedom}.server", $domain->NSUPDATE_SERVER);
file_put_contents("{$nsupdatefileprefix}" . ($domain->challengedomain != "yes" ? "_acme-challenge." : "") . "{$acmechalengedom}.server", $domain->NSUPDATE_SERVER);
$nsupdatekey = base64_decode($domain->NSUPDATE_KEY);

/* Set a default key algo of HMAC-MD5 if the key type is invalid. */
Expand All @@ -283,7 +283,7 @@ key "{$key_name}." {
secret "{$nsupdatekey}";
};
EOD;
file_put_contents("{$nsupdatefileprefix}_acme-challenge.{$acmechalengedom}.key", $keydata);
file_put_contents("{$nsupdatefileprefix}" . ($domain->challengedomain != "yes" ? "_acme-challenge." : "") . "{$acmechalengedom}.key", $keydata);
}
}

Expand Down