From 032d37115f87e11d12d924a03a0209125178336c Mon Sep 17 00:00:00 2001 From: neil <8305679+Neilpang@users.noreply.github.com> Date: Sat, 20 Jul 2019 17:20:51 +0800 Subject: [PATCH] Updated dnsapi (markdown) --- dnsapi.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/dnsapi.md b/dnsapi.md index b1d0f35..cd66a9c 100644 --- a/dnsapi.md +++ b/dnsapi.md @@ -1648,21 +1648,36 @@ export JD_REGION="cn-north-1" # 这里写你要改的区域 ## 84. Use hexonet.com DNS API to automatically issue a cert -You'll need username and password. +Create a role user in your Account -> Settings -> ShareAccess +Set the Access Control like bellow: +``` +QueryDNSZoneRRList(dnszone=*):ALLOW +UpdateDNSZone():ALLOW +``` + +Remember the role id and role password. ```sh -export Hexonet_Username="xxxxxxxxxx" -export Hexonet_Password="xxxxxxxxxx" +export Hexonet_Login='username!roleId' +export Hexonet_Password="role password" ``` +For example: +My user name is `neilpang`, my role id is: `testid`. So I use the following format: + +```sh +export Hexonet_Login='neilpang!testid' +``` + + To issue a cert: ```sh acme.sh --issue --dns dns_hexonet -d example.com -d www.example.com ``` -The `Hexonet_Username` and `Hexonet_Password` will be saved in `~/.acme.sh/account.conf` and will be reused when needed. +The `Hexonet_Login` and `Hexonet_Password` will be saved in `~/.acme.sh/account.conf` and will be reused when needed. If you find any bugs, please report here: