mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-12-24 12:14:23 +08:00
Updated dnsapi (markdown)
26
dnsapi.md
26
dnsapi.md
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user