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

This commit is contained in:
Frank Wall
2024-01-11 00:27:39 +01:00
parent 8a4f7ac2fd
commit b76b978fe7
4 changed files with 67 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@ Added:
* add Constellix DNS API
* add Exoscale DNS API
* add internetbs.net DNS API
* add PointHQ DNS API
Changed:
* use a dedicated acme.sh runtime directory for every cert (#3127)
@@ -1787,4 +1787,19 @@
<label>Password</label>
<type>password</type>
</field>
<field>
<label>PointHQ</label>
<type>header</type>
<style>table_dns table_dns_pointhq</style>
</field>
<field>
<id>validation.dns_pointhq_key</id>
<label>API Key</label>
<type>password</type>
</field>
<field>
<id>validation.dns_pointhq_email</id>
<label>E-Mail</label>
<type>text</type>
</field>
</form>
@@ -0,0 +1,44 @@
<?php
/*
* Copyright (C) 2024 Frank Wall
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
namespace OPNsense\AcmeClient\LeValidation;
use OPNsense\AcmeClient\LeValidationInterface;
use OPNsense\Core\Config;
/**
* PointHQ API
* @package OPNsense\AcmeClient
*/
class DnsPointhq extends Base implements LeValidationInterface
{
public function prepare()
{
$this->acme_env['PointHQ_Key'] = (string)$this->config->dns_pointhq_key;
$this->acme_env['exportPointHQ_Email'] = (string)$this->config->dns_pointhq_email;
}
}
@@ -502,6 +502,7 @@
<dns_ovh>OVH, kimsufi, soyoustart and runabove</dns_ovh>
<dns_pdns>PowerDNS.com</dns_pdns>
<dns_pleskxml>Plesk</dns_pleskxml>
<dns_pointhq>PointHQ</dns_pointhq>
<dns_porkbun>Porkbun</dns_porkbun>
<dns_regru>RegRu</dns_regru>
<dns_schlundtech>SchlundTech</dns_schlundtech>
@@ -1237,6 +1238,12 @@
<dns_internetbs_password type="TextField">
<Required>N</Required>
</dns_internetbs_password>
<dns_pointhq_key type="TextField">
<Required>N</Required>
</dns_pointhq_key>
<dns_pointhq_email type="TextField">
<Required>N</Required>
</dns_pointhq_email>
</validation>
</validations>
<actions>