Add Yandex Cloud DNS API instructions
parent
e2e23b9f9b
commit
89214a2fcc
27
dnsapi.md
27
dnsapi.md
|
@ -2967,6 +2967,33 @@ To issue a wildcard certificate, run command:
|
||||||
|
|
||||||
./acme.sh --issue --dns dns_la -d example.com -d *.example.com
|
./acme.sh --issue --dns dns_la -d example.com -d *.example.com
|
||||||
|
|
||||||
|
## 149. Use Yandex Cloud DNS API
|
||||||
|
|
||||||
|
Create a new service account with role `dns.editor` and [create authorized key](https://cloud.yandex.com/en-ru/docs/iam/operations/authorized-key/create) for him.
|
||||||
|
|
||||||
|
Required parameters:
|
||||||
|
```sh
|
||||||
|
export YC_Folder_ID="YC Folder ID"
|
||||||
|
export YC_SA_ID="Service Account ID"
|
||||||
|
export YC_SA_Key_ID="Service Account IAM Key ID"
|
||||||
|
# You need use YC_SA_Key_File_PEM_b64 or YC_SA_Key_File_Path
|
||||||
|
export YC_SA_Key_File_PEM_b64="Base64 content of private.key"
|
||||||
|
export YC_SA_Key_File_Path="/path/to/private.key"
|
||||||
|
```
|
||||||
|
|
||||||
|
Optional parameters:
|
||||||
|
```sh
|
||||||
|
export YC_Zone_ID="DNS Zone ID"
|
||||||
|
```
|
||||||
|
|
||||||
|
Now you cann issue a cert:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./acme.sh --issue --dns dns_yc -d example.com -d www.example.com
|
||||||
|
```
|
||||||
|
|
||||||
|
Both, `YC_Folder_ID`, `YC_SA_ID`, `YC_SA_Key_ID`, `YC_SA_Key_File_PEM_b64` or `YC_SA_Key_File_Path` and `YC_Zone_ID` will be saved in `~/.acme.sh/account.conf` and will be reused when needed.
|
||||||
|
|
||||||
|
|
||||||
# ##################
|
# ##################
|
||||||
# Use custom API
|
# Use custom API
|
||||||
|
|
Loading…
Reference in New Issue