Add Timeweb Cloud DNS API

master
Nikolay Pronchev 2024-05-08 04:43:38 +03:00
parent df6ade0d25
commit 53f276da1f
1 changed files with 21 additions and 0 deletions

@ -86,6 +86,7 @@
- [162. Use West.cn API](#dns_west_cn)
- [163. Use hosttech API](#dns_hosttech)
- [164. Use Alviy API](#dns_alviy)
- [165. Use Timeweb Cloud DNS API](#dns_timeweb)
- [Use custom API](#dns_myapi)
- [Use lexicon DNS API](#dns_lexicon)
@ -2139,6 +2140,26 @@ The `Alviy_token` will be saved in `~/.acme.sh/account.conf` and will be reused
Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/5115)
<a name="dns_timeweb"/>
## 165. Use Timeweb Cloud DNS API
To begin, acquire a Timeweb Cloud API JWT token. You can obtain one via the [Timeweb Cloud control panel](https://timeweb.cloud/my/api-keys).
Next, provide the JWT token to the script using one of two methods:
* As the "TW_Token" variable. For example:
```sh
export TW_Token='eyJhbG...zUxMiIs'
```
* As a "TW_Token" entry in acme.sh account configuration file (located at ~/.acme.sh/account.conf by default). For example, `TW_Token='eyJhbG...zUxMiIs'`
Finally, сonsider the following command as an example of how to issue a certificate using the ACME DNS-01 challenge:
```sh
./acme.sh --issue --dns dns_timeweb -d example.com,*.example.com,foo.bar.example.com
```
Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/5140).
<a name="dns_myapi"/>
## Use custom API