Add Beget.com DNS API

master
ARNik 2025-01-15 14:53:37 +03:00
parent 8e0f31d37d
commit a64a5ec85a
1 changed files with 41 additions and 0 deletions

@ -98,6 +98,7 @@
- [174. Use Anikeen Cloud DNS API](#dns_anikeen) - [174. Use Anikeen Cloud DNS API](#dns_anikeen)
- [175. Use mijn.host DNS API](#dns_mijnhost) - [175. Use mijn.host DNS API](#dns_mijnhost)
- [176. Use OpenProvider (REST) DNS API](#dns_openprovider_rest) - [176. Use OpenProvider (REST) DNS API](#dns_openprovider_rest)
- [177. Use Beget.com DNS API](#dns_beget)
- [Use custom API](#dns_myapi) - [Use custom API](#dns_myapi)
- [Use lexicon DNS API](#dns_lexicon) - [Use lexicon DNS API](#dns_lexicon)
@ -2455,6 +2456,46 @@ To issue a cert:
Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/6122) Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/6122)
<a name="dns_beget"/>
## 177. Use Beget.com DNS API *(merge request pending)*
This uses [Beget.com](https://beget.com/) DNS API.
1. First you need to login to your beget.com acount and enable the API.
Go to [this page](https://cp.beget.com/settings/access/api) ("Account settings" -> "Access restriction" -> "Beget API") and turn on "Allow API authentication" switch.
2. Set separate API password. Push `Set a new password for the API` button for that.
3. Set "Allowed methods" checkboxes:
- `DNS admnistration`
- `Domain administration`
- or simply use `All API functions` checkbox
Before running acme.sh script you need to provide your login/password:
```sh
export Beget_Username="your account login"
export Beget_Password="API password"
```
To essue your sertificate run:
```sh
./acme.sh --issue --server letsencrypt --dns dns_beget -d example.com
```
For wildcard certificate use:
```sh
./acme.sh --issue --server letsencrypt --dns dns_beget -d example.com -d '*.example.com'
```
*Note: "ZeroSSL" does not work in some countries, so use "Let's Encrypt" instead.*
Report any bugs or issues [here](https://github.com/acmesh-official/acme.sh/issues/6200)
## Use custom API ## Use custom API
If your API is not supported yet, you can write your own DNS API. If your API is not supported yet, you can write your own DNS API.