Updated dnsapi (markdown)
parent
a5e7da370f
commit
0d915a0898
31
dnsapi.md
31
dnsapi.md
|
@ -1051,6 +1051,15 @@ Then you can issue the certificate with acme.sh, for example:
|
||||||
<a name="dns_selectel" />
|
<a name="dns_selectel" />
|
||||||
|
|
||||||
## 38. Use selectel.com(selectel.ru) domain API to automatically issue cert
|
## 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.
|
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.
|
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_id> # account number
|
||||||
|
export SL_Project_Name=<project_name> # project name
|
||||||
|
export SL_Login_Name=<login_name> # service user name
|
||||||
|
export SL_Pswd=<pawd> # 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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
<a name="dns_zonomi" />
|
<a name="dns_zonomi" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue