Skip to content

Commit

Permalink
security/acme-client: add support for Hetzner DNS API, closes opnsens…
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Jun 8, 2020
1 parent 0dbff80 commit f3d517c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1111,4 +1111,14 @@
<label>API Token</label>
<type>password</type>
</field>
<field>
<label>Hetzner DNS API</label>
<type>header</type>
<style>table_dns table_dns_hetzner</style>
</field>
<field>
<id>validation.dns_hetzner_token</id>
<label>API Token</label>
<type>password</type>
</field>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
<dns_gd>GoDaddy.com API</dns_gd>
<dns_gcloud>Google Cloud DNS API</dns_gcloud>
<dns_gdnsdk>GratisDNS.dk</dns_gdnsdk>
<dns_hetzner>Hetzner DNS API</dns_hetzner>
<dns_hostingde>hosting.de API</dns_hostingde>
<dns_he>Hurricane Electric</dns_he>
<dns_infoblox>Infoblox API</dns_infoblox>
Expand Down Expand Up @@ -889,6 +890,9 @@
<dns_arvan_token type="TextField">
<Required>N</Required>
</dns_arvan_token>
<dns_hetzner_token type="TextField">
<Required>N</Required>
</dns_hetzner_token>
</validation>
</validations>
<actions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ function run_acme_validation($certObj, $valObj, $acctObj)
$proc_env['GDNSDK_Username'] = (string)$valObj->dns_gdnsdk_user;
$proc_env['GDNSDK_Password'] = (string)$valObj->dns_gdnsdk_password;
break;
case 'dns_hetzner':
$proc_env['HETZNER_Token'] = (string)$valObj->dns_hetzner_token;
break;
case 'dns_hostingde':
$proc_env['HOSTINGDE_ENDPOINT'] = (string)$valObj->dns_hostingde_server;
$proc_env['HOSTINGDE_APIKEY'] = (string)$valObj->dns_hostingde_apiKey;
Expand Down

0 comments on commit f3d517c

Please sign in to comment.