Merge pull request #1838 from mdbraber/master

security/acme-client: Add Acmeproxy DNS provider dialog
This commit is contained in:
Frank Wall
2020-05-18 09:46:08 +02:00
committed by GitHub
3 changed files with 35 additions and 0 deletions
@@ -1008,6 +1008,26 @@
<type>text</type>
<help>Specify the custom ACME DNS Update URL, i.e. https://auth.acme-dns.io/update (optional)</help>
</field>
<field>
<label>acmeproxy</label>
<type>header</type>
<style>table_dns table_dns_acmeproxy</style>
</field>
<field>
<id>validation.dns_acmeproxy_endpoint</id>
<label>Endpoint</label>
<type>text</type>
<help>Specify the acmeproxy endpoint URL, i.e. https://acmeproxy.examp
</field> <field>
<id>validation.dns_acmeproxy_username</id>
<label>User</label>
<type>text</type>
</field>
<field>
<id>validation.dns_acmeproxy_password</id>
<label>Password</label>
<type>password</type>
</field>
<field>
<label>Variomedia</label>
<type>header</type>
@@ -358,6 +358,7 @@
<default>dns_nsupdate</default>
<OptionValues>
<dns_acmedns>ACME DNS API</dns_acmedns>
<dns_acmeproxy>Acmeproxy API</dns_acmeproxy>
<dns_ad>Alwaysdata.com API</dns_ad>
<dns_ali>aliyun.com API</dns_ali>
<dns_autodns>AutoDNS (InterNetX) API</dns_autodns>
@@ -847,6 +848,15 @@
<dns_acmedns_updateurl type="TextField">
<Required>N</Required>
</dns_acmedns_updateurl>
<dns_acmeproxy_endpoint type="TextField">
<Required>N</Required>
</dns_acmeproxy_endpoint>
<dns_acmeproxy_username type="TextField">
<Required>N</Required>
</dns_acmeproxy_username>
<dns_acmeproxy_password type="TextField">
<Required>N</Required>
</dns_acmeproxy_password>
<dns_variomedia_key type="TextField">
<Required>N</Required>
</dns_variomedia_key>
@@ -653,6 +653,11 @@ function run_acme_validation($certObj, $valObj, $acctObj)
$proc_env['ACMEDNS_SUBDOMAIN'] = (string)$valObj->dns_acmedns_subdomain;
$proc_env['ACMEDNS_UPDATE_URL'] = (string)$valObj->dns_acmedns_updateurl;
break;
case 'dns_acmeproxy':
$proc_env['ACMEPROXY_ENDPOINT'] = (string)$valObj->dns_acmeproxy_endpoint;
$proc_env['ACMEPROXY_USERNAME'] = (string)$valObj->dns_acmeproxy_username;
$proc_env['ACMEPROXY_PASSWORD'] = (string)$valObj->dns_acmeproxy_password;
break;
case 'dns_ad':
$proc_env['AD_API_KEY'] = (string)$valObj->dns_ad_key;
break;