Certbot DNS 腾讯云插件
这是一个用于 Certbot 的腾讯云 DNSPod 插件,支持通过腾讯云 DNSPod API 进行 DNS-01 验证来获取 SSL 证书。支持泛域名。
功能特性
- 支持通过腾讯云 DNSPod API 自动管理 DNS 记录
- 支持泛域名
- 支持 certbot 3 版本(更低版本未测试)
- 兼容 Python 3.8+ 版本
- 支持 DNS-01 验证方式
- 自动清理临时 DNS 记录
- 完善的错误处理和日志记录
安装
从 PyPI 安装
pip3 install certbot-dns-tencent
配置文件
dns_tencent_secret_id = ??
dns_tencent_secret_key = ??
修改配置文件权限(假如文件是 ~/tencent.ini):
chmod 600 ~/tencent.ini
运行
certbot certonly \
--authenticator dns-tencent \
--dns-tencent-credentials ~/tencent.ini \
--dns-tencent-propagation-seconds 30 \
-d "*.example.com" \
-d "example.com"
腾讯云权限配置
确保您的腾讯云 API 密钥(SecretId / SecretKey)具有 DNSPod 的管理权限:
QcloudDNSPodFullAccess,或自定义策略包含以下操作:
dnspod:CreateRecorddnspod:DeleteRecorddnspod:DescribeRecordList
单元测试
python -m unittest discover -s tests -p "test_*.py" -v
自动部署
此程序只是 certbot 的 DNS 验证插件,如果需要自动运行申请部署,可以使用 AutoCert。
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_tencent-0.1.0.tar.gz.
File metadata
- Download URL: certbot_dns_tencent-0.1.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a935c555e75fd0f57a2a5e5d21fbb5482d51a41e0a56fead4e4324f69b6655d0
|
|
| MD5 |
f285c0bafc22b7cfa48d33803cf187db
|
|
| BLAKE2b-256 |
8975f402b32e14889a496776c1218e6bc9dc255a38a48a5fa7451213416f2697
|
Provenance
The following attestation bundles were made for certbot_dns_tencent-0.1.0.tar.gz:
Publisher:
release.yml on iDigimon/certbot-dns-tencent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_tencent-0.1.0.tar.gz -
Subject digest:
a935c555e75fd0f57a2a5e5d21fbb5482d51a41e0a56fead4e4324f69b6655d0 - Sigstore transparency entry: 2292030644
- Sigstore integration time:
-
Permalink:
iDigimon/certbot-dns-tencent@eb35f501e9315fb81fb9ef21b5b148546bdb7862 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/iDigimon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@eb35f501e9315fb81fb9ef21b5b148546bdb7862 -
Trigger Event:
release
-
Statement type:
File details
Details for the file certbot_dns_tencent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_tencent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
529dbf0c8c761bb570b37d4e92be45982c318478e6000db8155af397ff714952
|
|
| MD5 |
d4bf9f5cea39b526c5f2748d3b7aca08
|
|
| BLAKE2b-256 |
3f18de8ea5f201f3670c56d3590fb093d2023d15ebb2aca8e27037da566aa2e0
|
Provenance
The following attestation bundles were made for certbot_dns_tencent-0.1.0-py3-none-any.whl:
Publisher:
release.yml on iDigimon/certbot-dns-tencent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_tencent-0.1.0-py3-none-any.whl -
Subject digest:
529dbf0c8c761bb570b37d4e92be45982c318478e6000db8155af397ff714952 - Sigstore transparency entry: 2292030738
- Sigstore integration time:
-
Permalink:
iDigimon/certbot-dns-tencent@eb35f501e9315fb81fb9ef21b5b148546bdb7862 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/iDigimon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@eb35f501e9315fb81fb9ef21b5b148546bdb7862 -
Trigger Event:
release
-
Statement type: