Skip to main content

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:CreateRecord
  • dnspod:DeleteRecord
  • dnspod:DescribeRecordList

单元测试

python -m unittest discover -s tests -p "test_*.py" -v

自动部署

此程序只是 certbot 的 DNS 验证插件,如果需要自动运行申请部署,可以使用 AutoCert。

Release files for certbot-dns-tencent 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certbot-dns-tencent 0.1.0
File Size Uploaded
certbot_dns_tencent-0.1.0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-tencent 0.1.0
File Interpreter ABI Platform
certbot_dns_tencent-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / certbot_dns_tencent-0.1.0.tar.gz

Download URL certbot_dns_tencent-0.1.0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a935c555e75fd0f57a2a5e5d21fbb5482d51a41e0a56fead4e4324f69b6655d0
BLAKE2b-256 checksum
How to use checksums
8975f402b32e14889a496776c1218e6bc9dc255a38a48a5fa7451213416f2697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.

Transparency log

Release files / certbot_dns_tencent-0.1.0-py3-none-any.whl

Download URL certbot_dns_tencent-0.1.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
529dbf0c8c761bb570b37d4e92be45982c318478e6000db8155af397ff714952
BLAKE2b-256 checksum
How to use checksums
3f18de8ea5f201f3670c56d3590fb093d2023d15ebb2aca8e27037da566aa2e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page