Skip to main content

阿里云DNS插件,用于Certbot的DNS-01验证

Project description

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.

Project details


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_aliyun_next-1.0.7.tar.gz (7.1 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_aliyun_next-1.0.7-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_aliyun_next-1.0.7.tar.gz.

File metadata

  • Download URL: certbot_dns_aliyun_next-1.0.7.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for certbot_dns_aliyun_next-1.0.7.tar.gz
Algorithm Hash digest
SHA256 d9d8c0c09e6837f55ae8e6a553719e420def70a89afda847aedb287b6451a673
MD5 faa603f232f6ba9d52965f7624abb21c
BLAKE2b-256 43612103bf9d0e67d1559069d8df03a7438db024b7b99bd21a7cb4abc3f069c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_aliyun_next-1.0.7.tar.gz:

Publisher: release.yml on tiyee/certbot-dns-aliyun-next

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_aliyun_next-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_aliyun_next-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9710034c7c5b177f78ffc8ac8ec7d16f1110f4577bd62fa94469d9db1c7997c2
MD5 45f06f0ba4f2225832a0194a43647233
BLAKE2b-256 62f655d9beaa0e6c35b1bf88c1adbcc2948133c1fa1450e57f8f6e99fb71d0d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_aliyun_next-1.0.7-py3-none-any.whl:

Publisher: release.yml on tiyee/certbot-dns-aliyun-next

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