Skip to main content

Certbot DNS 阿里云插件

这是一个用于 Certbot 的阿里云 DNS 插件,支持通过阿里云 DNS API 进行 DNS-01 验证来获取 SSL 证书。支持泛域名。

功能特性

  • 支持通过阿里云DNS API自动管理DNS记录
  • 支持泛域名
  • 支持certbot 3 版本(更低没测试)
  • 兼容 Python 3.8+(含)版本
  • 支持 DNS-01 验证方式
  • 自动清理临时DNS记录
  • 完善的错误处理和日志记录

安装

从 PyPI 安装

pip3 install certbot-dns-aliyun-next

配置文件

dns_aliyun_next_access_key_id = ??
dns_aliyun_next_access_key_secret = ??
dns_aliyun_next_region_id = cn-hangzhou

修改配置文件权限(假如文件是~/aliyun.ini)

chmod 600 ~/aliyun.ini

运行

certbot certonly  \
  --authenticator dns-aliyun-next \
  --dns-aliyun-next-credentials ~/aliyun.ini  \
  --dns-aliyun-next-propagation-seconds 30 \
  -d "*.example.com" \
  -d "example.com"

阿里云权限配置

确保您的阿里云AccessKey具有以下权限:

AliyunDNSFullAccess 或自定义权限策略包含:

  • alidns:AddDomainRecord
  • alidns:DeleteDomainRecord
  • alidns:DescribeDomainRecords
  • alidns:UpdateDomainRecord

自动部署

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

Release files for certbot-dns-aliyun-next 1.0.7

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-aliyun-next 1.0.7
File Size Uploaded
certbot_dns_aliyun_next-1.0.7.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-aliyun-next 1.0.7
File Interpreter ABI Platform
certbot_dns_aliyun_next-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / certbot_dns_aliyun_next-1.0.7.tar.gz

Download URL certbot_dns_aliyun_next-1.0.7.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d9d8c0c09e6837f55ae8e6a553719e420def70a89afda847aedb287b6451a673
BLAKE2b-256 checksum
How to use checksums
43612103bf9d0e67d1559069d8df03a7438db024b7b99bd21a7cb4abc3f069c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 21, 2025.

Transparency log

Release files / certbot_dns_aliyun_next-1.0.7-py3-none-any.whl

Download URL certbot_dns_aliyun_next-1.0.7-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9710034c7c5b177f78ffc8ac8ec7d16f1110f4577bd62fa94469d9db1c7997c2
BLAKE2b-256 checksum
How to use checksums
62f655d9beaa0e6c35b1bf88c1adbcc2948133c1fa1450e57f8f6e99fb71d0d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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