Alibaba Cloud DNS Authenticator plugin for Certbot
Project description
Alibaba Cloud DNS Authenticator plugin for Certbot.
This plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records using the Alibaba Cloud DNS API.
Installation
pip install certbot-dns-alibabacloud
Named Arguments
--dns-alibabacloud-credentials |
Alibaba Cloud credentials INI file. (Required) |
--dns-alibabacloud-propagation-seconds |
The number of seconds to wait for DNS to propagate before asking the ACME server to verify the DNS record. (Default: 30) |
Credentials
You need to provide a credentials file containing your Alibaba Cloud AccessKey to Certbot so that it can communicate with Alibaba Cloud and complete the DNS-01 domain validation on your behalf. The Access Key can be created through the Alibaba Cloud RAM (Resource Access Management) console.
An example credentials file is shown below:
# Alibaba Cloud API credentials used by Certbot
dns_alibabacloud_access_key_id = LTAI5txxxxxxxxxxxxxxxxxx
dns_alibabacloud_access_key_secret = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
To manage the DNS records required for the challenge, the plugin first needs to locate the corresponding managed domain in Alibaba Cloud DNS for the requested certificate domain name.
The Access Key must have permission to list managed domains in Alibaba Cloud DNS, create and delete DNS records, and query existing records for challenge cleanup after the validation completes:
alidns:DescribeDomains
alidns:AddDomainRecord
alidns:DeleteDomainRecord
alidns:DescribeDomainRecords
Here is an example RAM policy that follows the Principle of Least Privilege:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "alidns:DescribeDomains",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"alidns:AddDomainRecord",
"alidns:DeleteDomainRecord",
"alidns:DescribeDomainRecords"
],
"Resource": "acs:alidns:*:*:domain/YOUR-DOMAIN-NAME.COM"
}
]
}
Examples
To acquire a certificate for example.com:
certbot certonly \
--authenticator dns-alibabacloud \
--dns-alibabacloud-credentials ~/.secrets/certbot/alibabacloud.ini \
-d example.com
To acquire a single certificate for both example.com and www.example.com:
certbot certonly \
--authenticator dns-alibabacloud \
--dns-alibabacloud-credentials ~/.secrets/certbot/alibabacloud.ini \
-d example.com \
-d www.example.com
To acquire a certificate for example.com, waiting 60 seconds for DNS propagation:
certbot certonly \
--authenticator dns-alibabacloud \
--dns-alibabacloud-credentials ~/.secrets/certbot/alibabacloud.ini \
--dns-alibabacloud-propagation-seconds 60 \
-d example.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file certbot_dns_alibabacloud-0.1.0.dev0.tar.gz.
File metadata
- Download URL: certbot_dns_alibabacloud-0.1.0.dev0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f237999a0b2ec8b7f83c4172f9708e6f99310801213c44a05ee75bc7cf186a9
|
|
| MD5 |
d237f9b2182693b15fcd24245c9bd0bd
|
|
| BLAKE2b-256 |
e5cf7d6baccde9dfd1054dfee106f2f62d7a86d1f0343adb380ac44a9df572a5
|
File details
Details for the file certbot_dns_alibabacloud-0.1.0.dev0-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_alibabacloud-0.1.0.dev0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1793213626c7b67c11779cebc2f91085095628aeb850e3e27cbc2e4931a53507
|
|
| MD5 |
029cbdf48aad5091601ade04f6dbd92f
|
|
| BLAKE2b-256 |
6a69d35170237a496616b82425c2dd25011212627203e397cdf65e2e6e17d00f
|