Skip to main content

certbot-dns-baidu-bcd

Certbot 的百度智能云 DNS(BCD,bcd.baidubce.com)DNS-01 认证插件。

PyPI 上的 certbot-dns-baidu 0.1.1 自 2021 年起停更,调用的是已废弃的百度云加速 (api.su.baidu.com/v3/yjs/...)接口,在 Nginx Proxy Manager 里已经不可用。本包是 它的替代实现:改用百度智能云 BCD 接口 + bce-auth-v1 签名。

安装

pip install certbot-dns-baidu-bcd

使用

凭据文件:

dns_baidu_access_key = <AccessKeyId>
dns_baidu_secret_key = <SecretAccessKey>
certbot certonly \
  --authenticator dns-baidu \
  --dns-baidu-credentials /etc/letsencrypt/baidu.ini \
  -d example.com

与 Nginx Proxy Manager 集成

插件注册名是 dns-baidu(与旧包一致),所以 NPM 的 --dns-baidu-credentials、 凭据键 dns_baidu_access_key / dns_baidu_secret_key、以及已有证书 renewal conf 里的 dns_baidu_credentials 全部不用改。只需把 backend/certbot/dns-plugins.json 里 baidu 一项的 package_name 指向本包:

"package_name": "certbot-dns-baidu-bcd",
"version": "~=2.0.0"

NPM 随后会在签发/续期前自动 pip install 它,与其它 87 个 provider 完全一致。

端点与签名

用途 请求
探测主域名 GET /v1/domain/detail?domain=<zone>
列记录 POST /v1/domain/resolve/list
增 TXT POST /v1/domain/resolve/add
删 TXT POST /v1/domain/resolve/delete

签名 bce-auth-v1:signingKey = hex_hmac_sha256(SK, "bce-auth-v1/AK/ts/1800"), signature = hex_hmac_sha256(signingKey, canonicalRequest),签名头 content-type;host;x-bce-date。

License

GPL-3.0-or-later,衍生自 github.com/chaoers/certbot-dns-baidu(原作者 Asterisk)。

Metadata

Release files for certbot-dns-baidu-bcd 2.0.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-baidu-bcd 2.0.0
File Size Uploaded Provenance Actions
certbot_dns_baidu_bcd-2.0.0.tar.gz 6.4 kB Without provenance Details for certbot_dns_baidu_bcd-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for certbot-dns-baidu-bcd 2.0.0
File Interpreter ABI Platform Actions
certbot_dns_baidu_bcd-2.0.0-py3-none-any.whl Python 3 none any Details for certbot_dns_baidu_bcd-2.0.0-py3-none-any.whl

Total release size: 12.5 kB

Release files / certbot_dns_baidu_bcd-2.0.0.tar.gz

Download URL certbot_dns_baidu_bcd-2.0.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
63fe3dde66dbbeade7ef2ec8808e3734cc6975076d62eedaaf88b7cdd8c7ddc2
BLAKE2b-256 checksum
How to use checksums
8bfca04be060d1577ccdce93a46e4ab5b441938cdd6e2ef2ad5917802a2a040a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / certbot_dns_baidu_bcd-2.0.0-py3-none-any.whl

Download URL certbot_dns_baidu_bcd-2.0.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eaed15edb19d1e9d8fad3730d7bc3ba43684f7f3a164b8a9f53abd7380ed3928
BLAKE2b-256 checksum
How to use checksums
c1cf99ed3c6ea6055aa9c3a64791bfd9f6af0a5f6046139474bde70325312c50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for certbot-dns-baidu-bcd 2.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

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