certbot-dns-dnspod-109 1.0.0__py3-none-any.whl → 1.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- certbot_dns_dnspod_109/_internal/dns_dnspod.py +3 -1
- {certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/METADATA +71 -37
- {certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/RECORD +7 -7
- {certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/LICENSE.txt +0 -0
- {certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/WHEEL +0 -0
- {certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/entry_points.txt +0 -0
- {certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/top_level.txt +0 -0
|
@@ -20,10 +20,12 @@ class Authenticator(dns_common.DNSAuthenticator):
|
|
|
20
20
|
This Authenticator uses the Dnspod API to fulfill a dns-01 challenge.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
+
# required by certbot
|
|
24
|
+
description = 'Obtain certificates using a DNS TXT record (if you are using Dnspod for DNS).'
|
|
25
|
+
|
|
23
26
|
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
24
27
|
super().__init__(*args, **kwargs)
|
|
25
28
|
self.credentials: Optional[CredentialsConfiguration] = None
|
|
26
|
-
self.description = 'Obtain certificates using a DNS TXT record (if you are using Dnspod for DNS).'
|
|
27
29
|
self.ACCOUNT_URL = 'https://console.cloud.tencent.com/cam'
|
|
28
30
|
self.ttl = 600
|
|
29
31
|
|
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: certbot-dns-dnspod-109
|
|
3
|
-
Version: 1.0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 1.0.2
|
|
4
|
+
Summary: Dnspod DNS Authenticator plugin for Certbot
|
|
5
5
|
Home-page: https://github.com/10935336/certbot-dns-dnspod-109
|
|
6
6
|
Author: 10935336
|
|
7
|
-
Author-email:
|
|
7
|
+
Author-email: 109@pha.pub
|
|
8
|
+
License: Apache License 2.0
|
|
8
9
|
Project-URL: Homepage, https://github.com/10935336/certbot-dns-dnspod-109
|
|
9
10
|
Project-URL: Issues, https://github.com/10935336/certbot-dns-dnspod-109/issues
|
|
10
|
-
Classifier:
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Plugins
|
|
13
|
+
Classifier: Intended Audience :: System Administrators
|
|
11
14
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
15
|
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
23
|
+
Classifier: Topic :: Security
|
|
24
|
+
Classifier: Topic :: System :: Installation/Setup
|
|
25
|
+
Classifier: Topic :: System :: Networking
|
|
26
|
+
Classifier: Topic :: System :: Systems Administration
|
|
27
|
+
Classifier: Topic :: Utilities
|
|
13
28
|
Requires-Python: >=3.9
|
|
14
29
|
Description-Content-Type: text/markdown
|
|
15
30
|
License-File: LICENSE.txt
|
|
31
|
+
Requires-Dist: acme>=3.0.1
|
|
32
|
+
Requires-Dist: certbot>=3.0.1
|
|
33
|
+
Requires-Dist: tencentcloud-sdk-python-common>=3.0.1227
|
|
34
|
+
Requires-Dist: tencentcloud-sdk-python-dnspod>=3.0.1227
|
|
35
|
+
Provides-Extra: docs
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: pytest; extra == "test"
|
|
16
38
|
|
|
17
39
|
[English](#english) | [简体中文](#%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
|
|
18
40
|
|
|
@@ -21,43 +43,45 @@ License-File: LICENSE.txt
|
|
|
21
43
|
|
|
22
44
|
|
|
23
45
|
## Just Another DNSPod DNS Authenticator plugin for Certbot
|
|
24
|
-
The `certbot-dns-dnspod-109` plugin automates the process of
|
|
25
|
-
completing a `dns-01` challenge (`~acme.challenges.DNS01`)
|
|
26
|
-
by creating, and subsequently removing, TXT records using the
|
|
46
|
+
The `certbot-dns-dnspod-109` plugin automates the process of
|
|
47
|
+
completing a `dns-01` challenge (`~acme.challenges.DNS01`)
|
|
48
|
+
by creating, and subsequently removing, TXT records using the
|
|
27
49
|
Dnspod API (Tencent Cloud API 3.0).
|
|
28
50
|
|
|
51
|
+
If you are using [Dnspod](https://www.dnspod.cn/) ([Tencent Cloud](https://cloud.tencent.com)) as your DNS provider,
|
|
52
|
+
then this is your plugin.
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
Tested on
|
|
56
|
+
- Certbot 3.0.1
|
|
57
|
+
|
|
58
|
+
|
|
29
59
|
## Usage
|
|
30
60
|
|
|
31
61
|
### 1. Install
|
|
32
62
|
|
|
33
63
|
#### pip:
|
|
34
64
|
```bash
|
|
35
|
-
pip install
|
|
65
|
+
pip install certbot-dns-dnspod-109
|
|
36
66
|
```
|
|
37
67
|
or
|
|
38
68
|
```bash
|
|
39
|
-
pip install certbot-dns-dnspod-109
|
|
69
|
+
pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git
|
|
40
70
|
```
|
|
41
71
|
|
|
42
72
|
|
|
43
73
|
#### snap:
|
|
44
74
|
```bash
|
|
45
|
-
snap install certbot-dns-dnspod-
|
|
46
|
-
snap connect certbot:plugin certbot-dns-dnspod-109
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
if root snap:
|
|
50
|
-
```bash
|
|
51
|
-
snap install certbot-dns-dnspod-109
|
|
75
|
+
snap install certbot-dns-dnspod-10935336
|
|
52
76
|
snap set certbot trust-plugin-with-root=ok
|
|
53
|
-
snap connect certbot:plugin certbot-dns-dnspod-
|
|
77
|
+
snap connect certbot:plugin certbot-dns-dnspod-10935336
|
|
54
78
|
```
|
|
55
79
|
|
|
56
80
|
### 2. Obtain SecretId and SecretKey
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
81
|
+
1. Visit https://console.cloud.tencent.com/cam to create a sub-user
|
|
82
|
+
2. Select "Programmatic access" for the sub-user access method
|
|
83
|
+
3. Grant the sub-user QcloudDNSPodFullAccess (Cloud DNS full read and write access rights) permission
|
|
84
|
+
4. Record SecretId and SecretKey
|
|
61
85
|
|
|
62
86
|
### 3. Prepare Credentials File
|
|
63
87
|
|
|
@@ -99,58 +123,62 @@ certbot certonly \
|
|
|
99
123
|
```
|
|
100
124
|
|
|
101
125
|
Test run
|
|
102
|
-
|
|
103
126
|
```bash
|
|
104
127
|
certbot certonly \
|
|
105
128
|
--register-unsafely-without-email \
|
|
106
129
|
-a dns-dnspod-109 \
|
|
107
130
|
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
131
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
108
132
|
-v \
|
|
109
133
|
--dry-run
|
|
110
134
|
```
|
|
111
135
|
|
|
136
|
+
## Parameter Description
|
|
137
|
+
``--dns-dnspod-109-credentials <path>`` points to the credentials file. (Required)
|
|
112
138
|
|
|
139
|
+
``--dns-dnspod-109-propagation-seconds`` The number of seconds to wait for DNS propagation before asking the ACME server to verify DNS records. If DNS records appear to be added successfully but verification fails, try increasing this value. (Default: 10)
|
|
113
140
|
|
|
114
141
|
|
|
115
142
|
|
|
116
143
|
|
|
144
|
+
<br>
|
|
145
|
+
<br>
|
|
146
|
+
<br>
|
|
147
|
+
<br>
|
|
148
|
+
<br>
|
|
117
149
|
|
|
118
150
|
# 简体中文
|
|
119
151
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
152
|
## 只是另一个适用于 Certbot 的 DNSPod DNS Authenticator 插件
|
|
124
153
|
|
|
125
154
|
`certbot-dns-dnspod-109` 插件通过使用 Dnspod API(腾讯云 API 3.0)创建并随后删除 TXT 记录,自动完成`dns-01` 质询(`~acme.challenges.DNS01`)。
|
|
126
155
|
|
|
156
|
+
如果你使用 [Dnspod](https://www.dnspod.cn/) ([腾讯云](https://cloud.tencent.com)) 作为你的域名解析服务提供商,那么这就是你的插件。
|
|
157
|
+
|
|
158
|
+
在以下版本中测试通过
|
|
159
|
+
- Certbot 3.0.1
|
|
160
|
+
|
|
127
161
|
## 使用方法
|
|
128
162
|
|
|
129
163
|
### 1. 安装
|
|
130
164
|
|
|
131
165
|
#### pip:
|
|
132
166
|
```bash
|
|
133
|
-
pip install
|
|
167
|
+
pip install certbot-dns-dnspod-109
|
|
134
168
|
```
|
|
135
169
|
或者
|
|
136
170
|
```bash
|
|
137
|
-
pip install certbot-dns-dnspod-109
|
|
171
|
+
pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git
|
|
138
172
|
```
|
|
139
173
|
|
|
140
174
|
#### snap:
|
|
141
175
|
```bash
|
|
142
|
-
snap install certbot-dns-dnspod-
|
|
143
|
-
snap connect certbot:plugin certbot-dns-dnspod-109
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
如果你使用 root snap:
|
|
147
|
-
```bash
|
|
148
|
-
snap install certbot-dns-dnspod-109
|
|
176
|
+
snap install certbot-dns-dnspod-10935336
|
|
149
177
|
snap set certbot trust-plugin-with-root=ok
|
|
150
|
-
snap connect certbot:plugin certbot-dns-dnspod-
|
|
178
|
+
snap connect certbot:plugin certbot-dns-dnspod-10935336
|
|
151
179
|
```
|
|
152
180
|
|
|
153
|
-
### 2. 获取SecretId和SecretKey
|
|
181
|
+
### 2. 获取 SecretId 和 SecretKey
|
|
154
182
|
1. 访问 https://console.cloud.tencent.com/cam 创建子用户
|
|
155
183
|
2. 子用户访问方式选择“编程访问”
|
|
156
184
|
3. 授予子用户 QcloudDNSPodFullAccess(Cloud DNS 完全读写访问权限)权限
|
|
@@ -196,12 +224,18 @@ certbot certonly \
|
|
|
196
224
|
```
|
|
197
225
|
|
|
198
226
|
测试运行
|
|
199
|
-
|
|
200
227
|
```bash
|
|
201
228
|
certbot certonly \
|
|
202
229
|
--register-unsafely-without-email \
|
|
203
230
|
-a dns-dnspod-109 \
|
|
204
231
|
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
232
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
205
233
|
-v \
|
|
206
234
|
--dry-run
|
|
207
235
|
```
|
|
236
|
+
|
|
237
|
+
## 参数说明
|
|
238
|
+
``--dns-dnspod-109-credentials <路径>`` 指向凭证文件。(必需)
|
|
239
|
+
|
|
240
|
+
``--dns-dnspod-109-propagation-seconds`` 在要求 ACME 服务器验证 DNS 记录之前等待 DNS 传播的秒数。如果显示 DNS 记录添加成功但验证失败,则尝试增加此值 。 (默认值:10)
|
|
241
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
certbot_dns_dnspod_109/__init__.py,sha256=qvnjZ72P7cvpavn66_Ws2c7s0Ft6OJpaSiIP8bAtYmc,3479
|
|
2
2
|
certbot_dns_dnspod_109/_internal/__init__.py,sha256=TxsS2fQuUdzQP-YoerMhKrCrodqACPybbe2JDGdtcZw,95
|
|
3
|
-
certbot_dns_dnspod_109/_internal/dns_dnspod.py,sha256=
|
|
3
|
+
certbot_dns_dnspod_109/_internal/dns_dnspod.py,sha256=nNz-Fyve_1an-D-cMthvV2IcswrrffU-M5hZ2cB6KGM,6393
|
|
4
4
|
certbot_dns_dnspod_109/_internal/tests/__init__.py,sha256=rjj8qB-_GHbjCMAlaq6MKyzVtE_NWf5A6NGYGC8JAPk,68
|
|
5
5
|
certbot_dns_dnspod_109/_internal/tests/dns_dnspod_test.py,sha256=6J7Rgk7iEeW9J_32bpIx4wmQ9aiyyi7koCNXBbj5fTo,8864
|
|
6
|
-
certbot_dns_dnspod_109-1.0.
|
|
7
|
-
certbot_dns_dnspod_109-1.0.
|
|
8
|
-
certbot_dns_dnspod_109-1.0.
|
|
9
|
-
certbot_dns_dnspod_109-1.0.
|
|
10
|
-
certbot_dns_dnspod_109-1.0.
|
|
11
|
-
certbot_dns_dnspod_109-1.0.
|
|
6
|
+
certbot_dns_dnspod_109-1.0.2.dist-info/LICENSE.txt,sha256=LMXecVrlqXbwhvukkwiAyeQhkUFz_IURG_9RTUdXEj8,10786
|
|
7
|
+
certbot_dns_dnspod_109-1.0.2.dist-info/METADATA,sha256=VgBZIy_c4Dzu_GhEGF2fJpRSgHzwM0AIP60HS1_6vkA,6853
|
|
8
|
+
certbot_dns_dnspod_109-1.0.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
9
|
+
certbot_dns_dnspod_109-1.0.2.dist-info/entry_points.txt,sha256=ri1pHfGGa7B3kLCWkTGn8Xg32rdNTLqBv4pDHwD8OUs,93
|
|
10
|
+
certbot_dns_dnspod_109-1.0.2.dist-info/top_level.txt,sha256=TZ8F7YwXuC4Q35y9QMVXnIAAf2aEEhxyBCQVwIK5yvg,23
|
|
11
|
+
certbot_dns_dnspod_109-1.0.2.dist-info/RECORD,,
|
{certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/LICENSE.txt
RENAMED
|
File without changes
|
|
File without changes
|
{certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{certbot_dns_dnspod_109-1.0.0.dist-info → certbot_dns_dnspod_109-1.0.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|