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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot_dns_tencent-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_dns_tencent-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for certbot_dns_tencent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a935c555e75fd0f57a2a5e5d21fbb5482d51a41e0a56fead4e4324f69b6655d0
MD5 f285c0bafc22b7cfa48d33803cf187db
BLAKE2b-256 8975f402b32e14889a496776c1218e6bc9dc255a38a48a5fa7451213416f2697

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_tencent-0.1.0.tar.gz:

Publisher: release.yml on iDigimon/certbot-dns-tencent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file certbot_dns_tencent-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_tencent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 529dbf0c8c761bb570b37d4e92be45982c318478e6000db8155af397ff714952
MD5 d4bf9f5cea39b526c5f2748d3b7aca08
BLAKE2b-256 3f18de8ea5f201f3670c56d3590fb093d2023d15ebb2aca8e27037da566aa2e0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page