From 0d915a0898a85b5bc3eee69a783db70de6a7c36a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=90?=
=?UTF-8?q?=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B5=D0=B2?=
<73811032+vlad-kms@users.noreply.github.com>
Date: Tue, 24 Dec 2024 18:29:16 +1000
Subject: [PATCH] Updated dnsapi (markdown)
---
dnsapi.md | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/dnsapi.md b/dnsapi.md
index a93bdab..a15a22c 100644
--- a/dnsapi.md
+++ b/dnsapi.md
@@ -1051,6 +1051,15 @@ Then you can issue the certificate with acme.sh, for example:
## 38. Use selectel.com(selectel.ru) domain API to automatically issue cert
+The provider currently supports two API versions: v1 (legacy) and v2 (actual).
+Legacy version is supported in a limited way and will be disabled from 09.2025.
+
+The module supports both API versions.
+
+The **SL_Ver** variable is used to determine the API version,
+the value must be either 'v1' or 'v2'. By default, 'v1'.
+
+**_For old installations using the API version 'v1' (legacy), everything remains the same:_**
First you need to login to your account to get your API key from: https://my.selectel.ru/profile/apikeys.
@@ -1065,6 +1074,28 @@ Ok, let's issue a cert now:
The `SL_Key` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
+**_If you are using API version 'v2' (actual), you need to define the following variables:_**
+
+```sh
+export SL_Ver=v2 # version API
+export SL_Expire=60 # token lifetime in minutes (0-1440). Default: 1400 minutes
+export SL_Login_ID= # account number
+export SL_Project_Name= # project name
+export SL_Login_Name= # service user name
+export SL_Pswd= # user password
+```
+
+The account number in the control panel can be seen in the upper right corner on the provider's website
+
+The service user name can be seen in the control panel: https://my.selectel.ru/iam/users_management/users?type=service
+
+The password can only be viewed when creating a user, or only changed to a new one.
+
+Ok, let's issue a cert now:
+```sh
+./acme.sh --issue --dns dns_selectel -d example.com -d *.example.com
+```
+