From a64a5ec85a7cf48fdd7b7284ad7ca944da8ce21b Mon Sep 17 00:00:00 2001 From: ARNik Date: Wed, 15 Jan 2025 14:53:37 +0300 Subject: [PATCH] Add Beget.com DNS API --- dnsapi2.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/dnsapi2.md b/dnsapi2.md index e4c1607..b103593 100644 --- a/dnsapi2.md +++ b/dnsapi2.md @@ -98,6 +98,7 @@ - [174. Use Anikeen Cloud DNS API](#dns_anikeen) - [175. Use mijn.host DNS API](#dns_mijnhost) - [176. Use OpenProvider (REST) DNS API](#dns_openprovider_rest) +- [177. Use Beget.com DNS API](#dns_beget) - [Use custom API](#dns_myapi) - [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) + + +## 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 If your API is not supported yet, you can write your own DNS API.