From 53f276da1fcd49ba203dd807613200474999d05d Mon Sep 17 00:00:00 2001 From: Nikolay Pronchev Date: Wed, 8 May 2024 04:43:38 +0300 Subject: [PATCH] Add Timeweb Cloud DNS API --- dnsapi2.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dnsapi2.md b/dnsapi2.md index fda7a34..3b830f3 100644 --- a/dnsapi2.md +++ b/dnsapi2.md @@ -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) + + +## 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). + ## Use custom API