security/acme-client: add support for variomedia DNS API

This commit is contained in:
Frank Wall
2019-12-26 23:36:07 +01:00
parent 98c979ba32
commit 8e00362dcd
3 changed files with 19 additions and 1 deletions
@@ -940,7 +940,7 @@
<label>ACME DNS</label>
<type>header</type>
<style>table_dns table_dns_acmedns</style>
</field>
</field>
<field>
<id>validation.dns_acmedns_user</id>
<label>User</label>
@@ -962,4 +962,15 @@
<type>text</type>
<help>Specify the custom ACME DNS Update URL, i.e. https://auth.acme-dns.io/update (optional)</help>
</field>
<field>
<label>Variomedia</label>
<type>header</type>
<style>table_dns table_dns_variomedia</style>
</field>
<field>
<id>validation.dns_variomedia_key</id>
<label>API Key</label>
<type>password</type>
<help>You need to obtain your API key from variomedia's customer support.</help>
</field>
</form>
@@ -406,6 +406,7 @@
<dns_selectel>selectel.com / selectel.ru domain API</dns_selectel>
<dns_servercow>Servercow API v1</dns_servercow>
<dns_unoeuro>UnoEuro API</dns_unoeuro>
<dns_variomedia>Variomedia.de API</dns_variomedia>
<dns_vscale>Vscale API</dns_vscale>
<dns_yandex>Yandex PDD API</dns_yandex>
<dns_zilore>Zilore DNS API</dns_zilore>
@@ -823,6 +824,9 @@
<dns_acmedns_updateurl type="TextField">
<Required>N</Required>
</dns_acmedns_updateurl>
<dns_variomedia_key type="TextField">
<Required>N</Required>
</dns_variomedia_key>
</validation>
</validations>
<actions>
@@ -881,6 +881,9 @@ function run_acme_validation($certObj, $valObj, $acctObj)
$proc_env['UNO_Key'] = (string)$valObj->dns_uno_key;
$proc_env['UNO_User'] = (string)$valObj->dns_uno_user;
break;
case 'dns_variomedia':
$proc_env['VARIOMEDIA_API_TOKEN'] = (string)$valObj->dns_variomedia_key;
break;
case 'dns_vscale':
$proc_env['VSCALE_API_KEY'] = (string)$valObj->dns_vscale_key;
break;