Updated dnsapi (markdown)

master
Bjarne Saltbaek 2021-10-03 13:30:52 +02:00
parent 6875a2733d
commit 3d207d41d1
1 changed files with 26 additions and 0 deletions

@ -2705,6 +2705,32 @@ The `VEESP_User` and `VEESP_Password` will be saved in `~/.acme.sh/account.conf`
Please report any issue to [https://github.com/acmesh-official/acme.sh/issues/3712](https://github.com/acmesh-official/acme.sh/issues/3712)
## 136. Use cPanel DNS systems
First you need to log into the cPanel interface and generate an API key for your account (under Security -> Manage API Tokens).
Then set your username, api token and hostname:
```
export cPanel_Username=username
export cPanel_Apitoken=apitoken
export cPanel_Hostname=hostname
```
example
```
export cPanel_Username=myadminuseratnordicway
export cPanel_Apitoken=CXJ8HRXFNS363RQ71Z51TKM9KTHRFZVE
export cPanel_Hostname=https://cp04.nordicway.dk:2083
```
Ok, let's issue a cert now:
```
acme.sh --issue --dns dns_cpanel -d example.com -d www.example.com
```
The `cPanel_Username`, `cPanel_Apitoken` and `cPanel_Hostname` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
Please report any issue to [https://github.com/acmesh-official/acme.sh/issues/TBA](https://github.com/acmesh-official/acme.sh/issues/TBA)
# Use custom API