Adding dns_cpanel_uapi usage

Adam Bodnar
2026-03-28 16:19:55 -05:00
parent d333420327
commit 3414f12469

@@ -127,6 +127,7 @@
- [203. Use Baidu Cloud BCD DNS API](#dns_baidu)
- [204. Use BEST-HOSTING DNS API](#dns_bh)
- [205. Use Gname.com DNS API](#dns_gname)
- [206. Use cPanel UAPI DNS](#dns_cpanel_uapi)
- [Use custom API](#dns_myapi)
@@ -3221,6 +3222,25 @@ acme.sh --issue --dns dns_gname -d example.com -d '*.example.com' --dnssleep 120
Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/6874).
## 206. Use cPanel UAPI DNS
This plugin uses cPanel's UAPI to manage DNS records. It supports API token authentication and Two-Factor Authentication.
First, log into cPanel and generate an API token (Security -> Manage API Tokens). Then set your credentials:
```sh
export cPanel_Username="username"
export cPanel_Apitoken="your_api_token"
export cPanel_Hostname="https://your.cpanel.host:2083"
Now issue a cert:
acme.sh --issue --dns dns_cpanel_uapi -d example.com -d *.example.com
The cPanel_Username, cPanel_Apitoken and cPanel_Hostname will be saved in ~/.acme.sh/account.conf and will be reused when needed.
Report any bugs or issues https://github.com/acmesh-official/acme.sh/issues/6877.
```
## Use custom API
<a name="dns_myapi"/>