Skip to main content

The `certbot-dns-dnspod-109` plugin automates the process of completing a `dns-01` challenge (`~acme.challenges.DNS01`) by creating, and subsequently removing, TXT records using the Dnspod API (Tencent Cloud API 3.0).

Reason this release was yanked:

This version does not correctly specify dependencies

Project description

English | 简体中文

English

Just Another DNSPod DNS Authenticator plugin for Certbot

The certbot-dns-dnspod-109 plugin automates the process of completing a dns-01 challenge (~acme.challenges.DNS01) by creating, and subsequently removing, TXT records using the Dnspod API (Tencent Cloud API 3.0).

Usage

1. Install

pip:

pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git

or

pip install certbot-dns-dnspod-109

snap:

snap install certbot-dns-dnspod-109
snap connect certbot:plugin certbot-dns-dnspod-109

if root snap:

snap install certbot-dns-dnspod-109
snap set certbot trust-plugin-with-root=ok
snap connect certbot:plugin certbot-dns-dnspod-109

2. Obtain SecretId and SecretKey

  1. Visit https://console.cloud.tencent.com/cam to create a sub-user
  2. Select "Programmatic access" for the sub-user access method
  3. Grant the sub-user QcloudDNSPodFullAccess (Cloud DNS full read and write access rights) permission
  4. Record SecretId and SecretKey

3. Prepare Credentials File

foobar.ini:

dns_dnspod_109_secret_id=foo
dns_dnspod_109_secret_key=bar

4. Ready to go

Usage Examples

To acquire a certificate for example.com

certbot certonly \
  -a dns-dnspod-109 \
  --dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
  -d example.com

To acquire a single certificate for both example.com and www.example.com

certbot certonly \
  -a dns-dnspod-109 \
  --dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
  -d example.com \
  -d www.example.com

To acquire a certificate for example.com, waiting 60 seconds for DNS propagation

certbot certonly \
  -a dns-dnspod-109 \
  --dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
  --dns-dnspod-109-propagation-seconds 60 \
  -d example.com

Test run

certbot certonly \
  --register-unsafely-without-email \
  -a dns-dnspod-109 \
  --dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
  -v \
  --dry-run

简体中文

只是另一个适用于 Certbot 的 DNSPod DNS Authenticator 插件

certbot-dns-dnspod-109 插件通过使用 Dnspod API(腾讯云 API 3.0)创建并随后删除 TXT 记录,自动完成dns-01 质询(~acme.challenges.DNS01)。

使用方法

1. 安装

pip:

pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git

或者

pip install certbot-dns-dnspod-109

snap:

snap install certbot-dns-dnspod-109
snap connect certbot:plugin certbot-dns-dnspod-109

如果你使用 root snap:

snap install certbot-dns-dnspod-109
snap set certbot trust-plugin-with-root=ok
snap connect certbot:plugin certbot-dns-dnspod-109

2. 获取SecretId和SecretKey

  1. 访问 https://console.cloud.tencent.com/cam 创建子用户
  2. 子用户访问方式选择“编程访问”
  3. 授予子用户 QcloudDNSPodFullAccess(Cloud DNS 完全读写访问权限)权限
  4. 记录 SecretId 和 SecretKey

3. 准备凭证文件

foobar.ini:

dns_dnspod_109_secret_id=foo
dns_dnspod_109_secret_key=bar

4. 准备就绪

使用示例

获取 example.com 的证书

certbot certonly \
-a dns-dnspod-109 \
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
-d example.com

获取同时有 example.comwww.example.com 的单个证书

certbot certonly \
-a dns-dnspod-109 \
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
-d example.com \
-d www.example.com

获取 example.com 的证书,但设置等待 60 秒(等待 DNS 传播)

certbot certonly \
-a dns-dnspod-109 \
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
--dns-dnspod-109-propagation-seconds 60 \
-d example.com

测试运行

certbot certonly \
  --register-unsafely-without-email \
  -a dns-dnspod-109 \
  --dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
  -v \
  --dry-run

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_dnspod_109-1.0.0.tar.gz (13.0 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_dnspod_109-1.0.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_dnspod_109-1.0.0.tar.gz.

File metadata

  • Download URL: certbot_dns_dnspod_109-1.0.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for certbot_dns_dnspod_109-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fd572382f3966ccc12d6f65fc6fc641bf5ed14734f5e09b3267b9ea743e066fe
MD5 62024081bf971882be31e3dc8054cfdd
BLAKE2b-256 84e3fdd809dd7ab09c0dd09797f2b377007dca743a83876c12cbb45b91aad8cf

See more details on using hashes here.

File details

Details for the file certbot_dns_dnspod_109-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_dnspod_109-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa22e2c78e3593edfbc2941d739b2e5f701409502db26da077a652f58b07887
MD5 0244bd1e907877821cf612658628c8fe
BLAKE2b-256 169120517522950a9fc1824b8526b387ec0b8c0ab5fc80feacb3c3a52663933e

See more details on using hashes here.

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