mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
security/acme-client: Add NSUPDATE_ZONE support to nsupdate DNS-01 Service (#1851)
Add NSUPDATE_ZONE nsupdate support Adds new validation.dns_nsudate_zone field to implement support for NSUPDATE_ZONE. See https://github.com/acmesh-official/acme.sh/pull/1963 for more information.
This commit is contained in:
+6
@@ -772,6 +772,12 @@
|
||||
<label>Server (FQDN)</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_nsupdate_zone</id>
|
||||
<label>Zone</label>
|
||||
<type>text</type>
|
||||
<help>Set hosted zone (e.g. example.com) as some DNS Providers require, like dyn.com's 'Standard DNS'.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_nsupdate_key</id>
|
||||
<label>Secret Key</label>
|
||||
|
||||
@@ -751,6 +751,9 @@
|
||||
<dns_nsupdate_server type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_nsupdate_server>
|
||||
<dns_nsupdate_zone type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_nsupdate_zone>
|
||||
<!-- TODO: maybe we should base64encode this field? -->
|
||||
<dns_nsupdate_key type="TextField">
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -893,6 +893,7 @@ function run_acme_validation($certObj, $valObj, $acctObj)
|
||||
file_put_contents($secret_key_filename, $secret_key_data);
|
||||
$proc_env['NSUPDATE_KEY'] = $secret_key_filename;
|
||||
$proc_env['NSUPDATE_SERVER'] = (string)$valObj->dns_nsupdate_server;
|
||||
$proc_env['NSUPDATE_ZONE'] = (string)$valObj->dns_nsupdate_zone;
|
||||
break;
|
||||
case 'dns_opnsense':
|
||||
# BIND plugin must be installed.
|
||||
|
||||
Reference in New Issue
Block a user