From cad35f15677cfea4396f3f5f7394546b4204ff4e Mon Sep 17 00:00:00 2001 From: Mike Barnes Date: Wed, 12 Dec 2018 12:31:38 +1100 Subject: [PATCH 1/2] Incorrect variable One variable replacement missed, remove refs to domain_id which isn't used. --- dnsapi/dns_pointhq.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dnsapi/dns_pointhq.sh b/dnsapi/dns_pointhq.sh index df6a6f6b..62313109 100644 --- a/dnsapi/dns_pointhq.sh +++ b/dnsapi/dns_pointhq.sh @@ -39,7 +39,6 @@ dns_pointhq_add() { _err "invalid domain" return 1 fi - _debug _domain_id "$_domain_id" _debug _sub_domain "$_sub_domain" _debug _domain "$_domain" @@ -77,7 +76,6 @@ dns_pointhq_rm() { _err "invalid domain" return 1 fi - _debug _domain_id "$_domain_id" _debug _sub_domain "$_sub_domain" _debug _domain "$_domain" @@ -111,7 +109,6 @@ dns_pointhq_rm() { #returns # _sub_domain=_acme-challenge.www # _domain=domain.com -# _domain_id=sdjkglgdfewsdfg _get_root() { domain=$1 i=2 @@ -145,7 +142,7 @@ _pointhq_rest() { data="$3" _debug "$ep" - _pointhq_auth=$(printf "%s:%s" "$PointHQ_Username" "$PointHQ_Key" | _base64) + _pointhq_auth=$(printf "%s:%s" "$PointHQ_Email" "$PointHQ_Key" | _base64) export _H1="Authorization: Basic $_pointhq_auth" export _H2="Content-Type: application/json" From 39b6d0d63656839075ffca3e58ce4fc2949c651d Mon Sep 17 00:00:00 2001 From: Mike Barnes Date: Tue, 8 Jan 2019 15:14:56 +1100 Subject: [PATCH 2/2] Added PointHQ docs Local production tests done, add pending local changes before rebase --- dnsapi/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dnsapi/README.md b/dnsapi/README.md index 2cecfa5a..b908de81 100644 --- a/dnsapi/README.md +++ b/dnsapi/README.md @@ -1014,6 +1014,18 @@ Now you can issue a certificate. acme.sh --issue --dns dns_namecheap -d example.com -d *.example.com ``` +## 54. Using PointHQ API to issue certs + +Log into [PointHQ account management](https://app.pointhq.com/profile) and copy the API key from the page there. + +```export PointHQ_Key="apikeystringgoeshere" +exportPointHQ_Email="accountemail@yourdomain.com" +``` + +You can then issue certs by using: +```acme.sh --issue --dns dns_pointhq -d example.com -d www.example.com +``` + # Use custom API If your API is not supported yet, you can write your own DNS API.