Skip to content

Commit

Permalink
security/acme-client: Enable new DNS-01 method "pleskxml" in GUI (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
stilez authored and fraenki committed Dec 26, 2019
1 parent 8132099 commit abcbc8d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,27 @@
<label>API Token</label>
<type>text</type>
</field>
<field>
<label>Plesk XML API</label>
<type>header</type>
<style>table_dns table_dns_pleskxml</style>
</field>
<field>
<id>validation.dns_pleskxml_user</id>
<label>User</label>
<type>text</type>
</field>
<field>
<id>validation.dns_pleskxml_pass</id>
<label>Password</label>
<type>password</type>
</field>
<field>
<id>validation.dns_pleskxml_uri</id>
<label>Plesk API URI</label>
<type>text</type>
<help>Plesk XML URIs often look similar to: https://my-plesk-site.com:8443/enterprise/control/agent.php</help>
</field>
<field>
<label>Zilore</label>
<type>header</type>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@
<dns_opnsense>OPNsense BIND Plugin</dns_opnsense>
<dns_ovh>OVH, kimsufi, soyoustart and runabove API</dns_ovh>
<dns_pdns>PowerDNS.com API</dns_pdns>
<dns_pleskxml>Plesk XML API</dns_pleskxml>
<dns_selectel>selectel.com / selectel.ru domain API</dns_selectel>
<dns_servercow>Servercow API v1</dns_servercow>
<dns_unoeuro>UnoEuro API</dns_unoeuro>
Expand Down Expand Up @@ -779,6 +780,15 @@
<dns_ovh_endpoint type="TextField">
<Required>N</Required>
</dns_ovh_endpoint>
<dns_pleskxml_user type="TextField">
<Required>N</Required>
</dns_pleskxml_user>
<dns_pleskxml_pass type="TextField">
<Required>N</Required>
</dns_pleskxml_pass>
<dns_pleskxml_uri type="TextField">
<Required>N</Required>
</dns_pleskxml_uri>
<dns_pdns_url type="TextField">
<Required>N</Required>
</dns_pdns_url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,11 @@ function run_acme_validation($certObj, $valObj, $acctObj)
$proc_env['PDNS_ServerId'] = (string)$valObj->dns_pdns_serverid;
$proc_env['PDNS_Token'] = (string)$valObj->dns_pdns_token;
break;
case 'dns_pleskxml':
$proc_env['pleskxml_user'] = (string)$valObj->dns_pleskxml_user;
$proc_env['pleskxml_pass'] = (string)$valObj->dns_pleskxml_pass;
$proc_env['pleskxml_uri'] = (string)$valObj->dns_pleskxml_uri;
break;
case 'dns_selectel':
$proc_env['SL_Key'] = (string)$valObj->dns_sl_key;
break;
Expand Down

0 comments on commit abcbc8d

Please sign in to comment.