certbot-dns-edgeone
Tencent Cloud EdgeOne (TEO) DNS Authenticator plugin for Certbot (similar to certbot-dns-aliyun / certbot-dns-cloudflare), allowing automated issuance and renewal of Let's Encrypt SSL/TLS certificates (including wildcard certificates).
This plugin automates the process of completing dns-01 challenges by creating and subsequently removing _acme-challenge TXT records via the Tencent Cloud EdgeOne API.
Features
- Automated DNS-01 Challenge: Automatically matches the corresponding EdgeOne Zone, creates verification TXT records, and cleans them up after ACME validation.
- Wildcard Certificate Support: Full support for single domains, multi-domains (SAN), and wildcard domains (e.g.,
*.example.com). - IDN / Punycode Support: Built-in support for internationalized domain names (Chinese, Japanese, etc.).
- Smart Zone Discovery & Caching: Progressively looks up parent domains to locate the EdgeOne Zone ID, with in-memory caching to minimize API requests.
- Customizable: Allows specifying a
zone-idexplicitly and configuring custom DNS propagation wait times.
Installation
Using uv (Recommended)
In your virtual environment:
uv pip install certbot-dns-edgeone
Or install from source:
git clone https://github.com/hurole/certbot-dns-edgeone.git
cd certbot-dns-edgeone
# Create and activate virtual environment
uv venv
source .venv/bin/activate
# Install in editable mode
uv pip install -e .
Using pip
pip install certbot certbot-dns-edgeone
Verify that Certbot discovers the plugin:
certbot plugins
You should see * dns-edgeone listed in the output:
* dns-edgeone
Description: Obtain certificates using a DNS TXT record (if you are using Tencent Cloud EdgeOne for DNS).
Interfaces: Authenticator, Plugin
Entry point: dns-edgeone = certbot_dns_edgeone.dns_edgeone:Authenticator
Credentials
- Go to Tencent Cloud CAM Console - API Key Management to generate an API key (
SecretIdandSecretKey). - Ensure the user or role has the required EdgeOne (TEO) permissions (
QcloudTEOFullAccessor a custom policy grantingteo:DescribeZones,teo:CreateDnsRecord,teo:DescribeDnsRecords, andteo:DeleteDnsRecords). - Create a credentials INI file (e.g.,
~/.secrets/certbot/edgeone.ini):
# Tencent Cloud EdgeOne API credentials
dns_edgeone_secret_id = YOUR_TENCENTCLOUD_SECRET_ID
dns_edgeone_secret_key = YOUR_TENCENTCLOUD_SECRET_KEY
# Optional: STS Security Token (if using temporary credentials)
# dns_edgeone_token = your_sts_token
# Optional: Manually specify EdgeOne Zone ID (skips auto-discovery)
# dns_edgeone_zone_id = zone-2noz78a8ev6k
- Secure the credentials file:
chmod 600 ~/.secrets/certbot/edgeone.ini
Usage
Request a Certificate
Run certbot certonly with the dns-edgeone authenticator:
certbot certonly \
-a dns-edgeone \
--dns-edgeone-credentials ~/.secrets/certbot/edgeone.ini \
--dns-edgeone-propagation-seconds 30 \
-d example.com \
-d "*.example.com"
Automatic Renewal
Certbot renews certificates automatically before they expire (usually within 30 days) via cron or a systemd timer.
Test renewal using dry-run mode:
certbot renew --dry-run
Arguments
| Argument | Default | Description |
|---|---|---|
--dns-edgeone-credentials |
Required | Path to INI credentials file containing EdgeOne API secret_id and secret_key |
--dns-edgeone-propagation-seconds |
30 |
Seconds to wait for DNS propagation before ACME validation |
--dns-edgeone-zone-id |
Auto | Optional EdgeOne Zone ID (e.g. zone-xxxxxx) to override automatic discovery |
Development & Testing
Run the test suite using pytest:
uv pip install pytest
pytest -v
License
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_edgeone-0.1.0.tar.gz.
File metadata
- Download URL: certbot_dns_edgeone-0.1.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac02a114447d232ad3fd56dcd401aad637bdf26eea0845105109b1335bec7d2f
|
|
| MD5 |
bab54ac3e10fdcbd025beb81883c276f
|
|
| BLAKE2b-256 |
762f6267dc0f1897552f0304a78da45f9bdb70d227f9be8386817ca6b203d407
|
File details
Details for the file certbot_dns_edgeone-0.1.0-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_edgeone-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8cdc0c9c84a81a790d82a07d4ce5180a3c6488b72a616cff750e7a041703612
|
|
| MD5 |
0d510d1f661c6a01c5f71fb927216539
|
|
| BLAKE2b-256 |
bf69490b6218676eb52871485398d951f5c3de1b2496866813c07f9b6a35eb56
|