certbot-dns-dnspod-109 1.0.1__tar.gz → 1.0.3__tar.gz
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-1.0.1/certbot_dns_dnspod_109.egg-info → certbot_dns_dnspod_109-1.0.3}/PKG-INFO +114 -21
- certbot_dns_dnspod_109-1.0.1/PKG-INFO → certbot_dns_dnspod_109-1.0.3/Readme.md +88 -33
- certbot_dns_dnspod_109-1.0.3/certbot_dns_dnspod_109/_internal/dns_dnspod.py +313 -0
- certbot_dns_dnspod_109-1.0.3/certbot_dns_dnspod_109/_internal/tests/dns_dnspod_test.py +330 -0
- certbot_dns_dnspod_109-1.0.1/Readme.md → certbot_dns_dnspod_109-1.0.3/certbot_dns_dnspod_109.egg-info/PKG-INFO +126 -17
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/certbot_dns_dnspod_109.egg-info/SOURCES.txt +2 -1
- certbot_dns_dnspod_109-1.0.3/certbot_dns_dnspod_109.egg-info/requires.txt +9 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/setup.py +13 -1
- certbot_dns_dnspod_109-1.0.1/certbot_dns_dnspod_109/_internal/dns_dnspod.py +0 -153
- certbot_dns_dnspod_109-1.0.1/certbot_dns_dnspod_109/_internal/tests/dns_dnspod_test.py +0 -201
- certbot_dns_dnspod_109-1.0.1/pyproject.toml +0 -18
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/LICENSE.txt +0 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/certbot_dns_dnspod_109/__init__.py +0 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/certbot_dns_dnspod_109/_internal/__init__.py +0 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/certbot_dns_dnspod_109/_internal/tests/__init__.py +0 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/certbot_dns_dnspod_109.egg-info/dependency_links.txt +0 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/certbot_dns_dnspod_109.egg-info/entry_points.txt +0 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/certbot_dns_dnspod_109.egg-info/top_level.txt +0 -0
- {certbot_dns_dnspod_109-1.0.1 → certbot_dns_dnspod_109-1.0.3}/setup.cfg +0 -0
|
@@ -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.3
|
|
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,6 +43,9 @@ License-File: LICENSE.txt
|
|
|
21
43
|
|
|
22
44
|
|
|
23
45
|
## Just Another DNSPod DNS Authenticator plugin for Certbot
|
|
46
|
+
|
|
47
|
+
Just Another Tencent Cloud DNSPod DNS Authenticator plugin for [Certbot](https://certbot.eff.org/)
|
|
48
|
+
|
|
24
49
|
The `certbot-dns-dnspod-109` plugin automates the process of
|
|
25
50
|
completing a `dns-01` challenge (`~acme.challenges.DNS01`)
|
|
26
51
|
by creating, and subsequently removing, TXT records using the
|
|
@@ -32,6 +57,8 @@ then this is your plugin.
|
|
|
32
57
|
|
|
33
58
|
Tested on
|
|
34
59
|
- Certbot 3.0.1
|
|
60
|
+
- Certbot 5.1.0
|
|
61
|
+
- Certbot 5.2.2
|
|
35
62
|
|
|
36
63
|
|
|
37
64
|
## Usage
|
|
@@ -49,6 +76,8 @@ pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git
|
|
|
49
76
|
|
|
50
77
|
|
|
51
78
|
#### snap:
|
|
79
|
+
The snap version is deprecated and will not receive updates after version v1.0.2.
|
|
80
|
+
|
|
52
81
|
```bash
|
|
53
82
|
snap install certbot-dns-dnspod-10935336
|
|
54
83
|
snap set certbot trust-plugin-with-root=ok
|
|
@@ -69,6 +98,11 @@ dns_dnspod_109_secret_id=foo
|
|
|
69
98
|
dns_dnspod_109_secret_key=bar
|
|
70
99
|
```
|
|
71
100
|
|
|
101
|
+
Optional parameters:
|
|
102
|
+
```ini
|
|
103
|
+
dns_dnspod_109_endpoint=dnspod.tencentcloudapi.com
|
|
104
|
+
```
|
|
105
|
+
|
|
72
106
|
### 4. Ready to go
|
|
73
107
|
|
|
74
108
|
#### Usage Examples
|
|
@@ -91,6 +125,15 @@ certbot certonly \
|
|
|
91
125
|
-d www.example.com
|
|
92
126
|
```
|
|
93
127
|
|
|
128
|
+
Obtain a wildcard certificate for `example.com`
|
|
129
|
+
```bash
|
|
130
|
+
certbot certonly \
|
|
131
|
+
-a dns-dnspod-109 \
|
|
132
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
133
|
+
-d example.com \
|
|
134
|
+
-d *.example.com
|
|
135
|
+
```
|
|
136
|
+
|
|
94
137
|
To acquire a certificate for example.com, waiting 60 seconds for DNS propagation
|
|
95
138
|
```bash
|
|
96
139
|
certbot certonly \
|
|
@@ -100,7 +143,7 @@ certbot certonly \
|
|
|
100
143
|
-d example.com
|
|
101
144
|
```
|
|
102
145
|
|
|
103
|
-
Test run
|
|
146
|
+
Test run (Skipping the final certificate issuance)
|
|
104
147
|
```bash
|
|
105
148
|
certbot certonly \
|
|
106
149
|
--register-unsafely-without-email \
|
|
@@ -111,8 +154,22 @@ certbot certonly \
|
|
|
111
154
|
--dry-run
|
|
112
155
|
```
|
|
113
156
|
|
|
157
|
+
Test run a wildcard certificate for `example.com`(Skipping the final certificate issuance)
|
|
158
|
+
```bash
|
|
159
|
+
certbot certonly \
|
|
160
|
+
--register-unsafely-without-email \
|
|
161
|
+
-a dns-dnspod-109 \
|
|
162
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
163
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
164
|
+
-v \
|
|
165
|
+
--dry-run \
|
|
166
|
+
-d example.com \
|
|
167
|
+
-d *.example.com
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
|
|
114
171
|
## Parameter Description
|
|
115
|
-
``--dns-dnspod-109-credentials <path>``
|
|
172
|
+
``--dns-dnspod-109-credentials <path>`` Path to the credential file (required)
|
|
116
173
|
|
|
117
174
|
``--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)
|
|
118
175
|
|
|
@@ -129,12 +186,16 @@ certbot certonly \
|
|
|
129
186
|
|
|
130
187
|
## 只是另一个适用于 Certbot 的 DNSPod DNS Authenticator 插件
|
|
131
188
|
|
|
189
|
+
只是另一个适用于 [Certbot](https://certbot.eff.org/) 的 Tencent Cloud DNSPod DNS Authenticator 插件
|
|
190
|
+
|
|
132
191
|
`certbot-dns-dnspod-109` 插件通过使用 Dnspod API(腾讯云 API 3.0)创建并随后删除 TXT 记录,自动完成`dns-01` 质询(`~acme.challenges.DNS01`)。
|
|
133
192
|
|
|
134
193
|
如果你使用 [Dnspod](https://www.dnspod.cn/) ([腾讯云](https://cloud.tencent.com)) 作为你的域名解析服务提供商,那么这就是你的插件。
|
|
135
194
|
|
|
136
195
|
在以下版本中测试通过
|
|
137
196
|
- Certbot 3.0.1
|
|
197
|
+
- Certbot 5.1.0
|
|
198
|
+
- Certbot 5.2.2
|
|
138
199
|
|
|
139
200
|
## 使用方法
|
|
140
201
|
|
|
@@ -150,6 +211,9 @@ pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git
|
|
|
150
211
|
```
|
|
151
212
|
|
|
152
213
|
#### snap:
|
|
214
|
+
|
|
215
|
+
snap 版本已弃用,将不会收到 v1.0.2 版本之后的更新
|
|
216
|
+
|
|
153
217
|
```bash
|
|
154
218
|
snap install certbot-dns-dnspod-10935336
|
|
155
219
|
snap set certbot trust-plugin-with-root=ok
|
|
@@ -164,12 +228,17 @@ snap connect certbot:plugin certbot-dns-dnspod-10935336
|
|
|
164
228
|
|
|
165
229
|
### 3. 准备凭证文件
|
|
166
230
|
|
|
167
|
-
foobar.ini:
|
|
231
|
+
foobar.ini:
|
|
168
232
|
```ini
|
|
169
233
|
dns_dnspod_109_secret_id=foo
|
|
170
234
|
dns_dnspod_109_secret_key=bar
|
|
171
235
|
```
|
|
172
236
|
|
|
237
|
+
可选参数:
|
|
238
|
+
```ini
|
|
239
|
+
dns_dnspod_109_endpoint=dnspod.tencentcloudapi.com
|
|
240
|
+
```
|
|
241
|
+
|
|
173
242
|
### 4. 准备就绪
|
|
174
243
|
|
|
175
244
|
#### 使用示例
|
|
@@ -178,30 +247,40 @@ dns_dnspod_109_secret_key=bar
|
|
|
178
247
|
|
|
179
248
|
```bash
|
|
180
249
|
certbot certonly \
|
|
181
|
-
-a dns-dnspod-109 \
|
|
182
|
-
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
183
|
-
-d example.com
|
|
250
|
+
-a dns-dnspod-109 \
|
|
251
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
252
|
+
-d example.com
|
|
184
253
|
```
|
|
185
254
|
|
|
186
255
|
获取同时有 `example.com` 和 `www.example.com` 的单个证书
|
|
187
256
|
```bash
|
|
188
257
|
certbot certonly \
|
|
189
|
-
-a dns-dnspod-109 \
|
|
190
|
-
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
191
|
-
-d example.com \
|
|
192
|
-
-d www.example.com
|
|
258
|
+
-a dns-dnspod-109 \
|
|
259
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
260
|
+
-d example.com \
|
|
261
|
+
-d www.example.com
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
获取 `example.com` 的泛域名证书
|
|
265
|
+
```bash
|
|
266
|
+
certbot certonly \
|
|
267
|
+
-a dns-dnspod-109 \
|
|
268
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
269
|
+
-d example.com \
|
|
270
|
+
-d *.example.com
|
|
193
271
|
```
|
|
194
272
|
|
|
273
|
+
|
|
195
274
|
获取 `example.com` 的证书,但设置等待 60 秒(等待 DNS 传播)
|
|
196
275
|
```bash
|
|
197
276
|
certbot certonly \
|
|
198
|
-
-a dns-dnspod-109 \
|
|
199
|
-
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
200
|
-
--dns-dnspod-109-propagation-seconds 60 \
|
|
201
|
-
-d example.com
|
|
277
|
+
-a dns-dnspod-109 \
|
|
278
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
279
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
280
|
+
-d example.com
|
|
202
281
|
```
|
|
203
282
|
|
|
204
|
-
|
|
283
|
+
测试运行(跳过最终证书颁发)
|
|
205
284
|
```bash
|
|
206
285
|
certbot certonly \
|
|
207
286
|
--register-unsafely-without-email \
|
|
@@ -212,8 +291,22 @@ certbot certonly \
|
|
|
212
291
|
--dry-run
|
|
213
292
|
```
|
|
214
293
|
|
|
294
|
+
测试运行,获取 `example.com` 的泛域名证书(跳过最终证书颁发)
|
|
295
|
+
```bash
|
|
296
|
+
certbot certonly \
|
|
297
|
+
--register-unsafely-without-email \
|
|
298
|
+
-a dns-dnspod-109 \
|
|
299
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
300
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
301
|
+
-v \
|
|
302
|
+
--dry-run \
|
|
303
|
+
-d example.com \
|
|
304
|
+
-d *.example.com
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
|
|
215
308
|
## 参数说明
|
|
216
|
-
``--dns-dnspod-109-credentials <路径>``
|
|
309
|
+
``--dns-dnspod-109-credentials <路径>`` 指向凭证文件的路径(必需)
|
|
217
310
|
|
|
218
|
-
``--dns-dnspod-109-propagation-seconds`` 在要求 ACME 服务器验证 DNS 记录之前等待 DNS 传播的秒数。如果显示 DNS 记录添加成功但验证失败,则尝试增加此值
|
|
311
|
+
``--dns-dnspod-109-propagation-seconds`` 在要求 ACME 服务器验证 DNS 记录之前等待 DNS 传播的秒数。如果显示 DNS 记录添加成功但验证失败,则尝试增加此值 (默认值:10)
|
|
219
312
|
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: certbot-dns-dnspod-109
|
|
3
|
-
Version: 1.0.1
|
|
4
|
-
Summary: 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).
|
|
5
|
-
Home-page: https://github.com/10935336/certbot-dns-dnspod-109
|
|
6
|
-
Author: 10935336
|
|
7
|
-
Author-email: 10935336 <109@pha.pub>
|
|
8
|
-
Project-URL: Homepage, https://github.com/10935336/certbot-dns-dnspod-109
|
|
9
|
-
Project-URL: Issues, https://github.com/10935336/certbot-dns-dnspod-109/issues
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
-
Classifier: Operating System :: POSIX :: Linux
|
|
13
|
-
Requires-Python: >=3.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
License-File: LICENSE.txt
|
|
16
|
-
|
|
17
1
|
[English](#english) | [简体中文](#%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
|
|
18
2
|
|
|
19
3
|
|
|
@@ -21,6 +5,9 @@ License-File: LICENSE.txt
|
|
|
21
5
|
|
|
22
6
|
|
|
23
7
|
## Just Another DNSPod DNS Authenticator plugin for Certbot
|
|
8
|
+
|
|
9
|
+
Just Another Tencent Cloud DNSPod DNS Authenticator plugin for [Certbot](https://certbot.eff.org/)
|
|
10
|
+
|
|
24
11
|
The `certbot-dns-dnspod-109` plugin automates the process of
|
|
25
12
|
completing a `dns-01` challenge (`~acme.challenges.DNS01`)
|
|
26
13
|
by creating, and subsequently removing, TXT records using the
|
|
@@ -32,6 +19,8 @@ then this is your plugin.
|
|
|
32
19
|
|
|
33
20
|
Tested on
|
|
34
21
|
- Certbot 3.0.1
|
|
22
|
+
- Certbot 5.1.0
|
|
23
|
+
- Certbot 5.2.2
|
|
35
24
|
|
|
36
25
|
|
|
37
26
|
## Usage
|
|
@@ -49,6 +38,8 @@ pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git
|
|
|
49
38
|
|
|
50
39
|
|
|
51
40
|
#### snap:
|
|
41
|
+
The snap version is deprecated and will not receive updates after version v1.0.2.
|
|
42
|
+
|
|
52
43
|
```bash
|
|
53
44
|
snap install certbot-dns-dnspod-10935336
|
|
54
45
|
snap set certbot trust-plugin-with-root=ok
|
|
@@ -69,6 +60,11 @@ dns_dnspod_109_secret_id=foo
|
|
|
69
60
|
dns_dnspod_109_secret_key=bar
|
|
70
61
|
```
|
|
71
62
|
|
|
63
|
+
Optional parameters:
|
|
64
|
+
```ini
|
|
65
|
+
dns_dnspod_109_endpoint=dnspod.tencentcloudapi.com
|
|
66
|
+
```
|
|
67
|
+
|
|
72
68
|
### 4. Ready to go
|
|
73
69
|
|
|
74
70
|
#### Usage Examples
|
|
@@ -91,6 +87,15 @@ certbot certonly \
|
|
|
91
87
|
-d www.example.com
|
|
92
88
|
```
|
|
93
89
|
|
|
90
|
+
Obtain a wildcard certificate for `example.com`
|
|
91
|
+
```bash
|
|
92
|
+
certbot certonly \
|
|
93
|
+
-a dns-dnspod-109 \
|
|
94
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
95
|
+
-d example.com \
|
|
96
|
+
-d *.example.com
|
|
97
|
+
```
|
|
98
|
+
|
|
94
99
|
To acquire a certificate for example.com, waiting 60 seconds for DNS propagation
|
|
95
100
|
```bash
|
|
96
101
|
certbot certonly \
|
|
@@ -100,7 +105,7 @@ certbot certonly \
|
|
|
100
105
|
-d example.com
|
|
101
106
|
```
|
|
102
107
|
|
|
103
|
-
Test run
|
|
108
|
+
Test run (Skipping the final certificate issuance)
|
|
104
109
|
```bash
|
|
105
110
|
certbot certonly \
|
|
106
111
|
--register-unsafely-without-email \
|
|
@@ -111,8 +116,22 @@ certbot certonly \
|
|
|
111
116
|
--dry-run
|
|
112
117
|
```
|
|
113
118
|
|
|
119
|
+
Test run a wildcard certificate for `example.com`(Skipping the final certificate issuance)
|
|
120
|
+
```bash
|
|
121
|
+
certbot certonly \
|
|
122
|
+
--register-unsafely-without-email \
|
|
123
|
+
-a dns-dnspod-109 \
|
|
124
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
125
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
126
|
+
-v \
|
|
127
|
+
--dry-run \
|
|
128
|
+
-d example.com \
|
|
129
|
+
-d *.example.com
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
|
|
114
133
|
## Parameter Description
|
|
115
|
-
``--dns-dnspod-109-credentials <path>``
|
|
134
|
+
``--dns-dnspod-109-credentials <path>`` Path to the credential file (required)
|
|
116
135
|
|
|
117
136
|
``--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)
|
|
118
137
|
|
|
@@ -129,12 +148,16 @@ certbot certonly \
|
|
|
129
148
|
|
|
130
149
|
## 只是另一个适用于 Certbot 的 DNSPod DNS Authenticator 插件
|
|
131
150
|
|
|
151
|
+
只是另一个适用于 [Certbot](https://certbot.eff.org/) 的 Tencent Cloud DNSPod DNS Authenticator 插件
|
|
152
|
+
|
|
132
153
|
`certbot-dns-dnspod-109` 插件通过使用 Dnspod API(腾讯云 API 3.0)创建并随后删除 TXT 记录,自动完成`dns-01` 质询(`~acme.challenges.DNS01`)。
|
|
133
154
|
|
|
134
155
|
如果你使用 [Dnspod](https://www.dnspod.cn/) ([腾讯云](https://cloud.tencent.com)) 作为你的域名解析服务提供商,那么这就是你的插件。
|
|
135
156
|
|
|
136
157
|
在以下版本中测试通过
|
|
137
158
|
- Certbot 3.0.1
|
|
159
|
+
- Certbot 5.1.0
|
|
160
|
+
- Certbot 5.2.2
|
|
138
161
|
|
|
139
162
|
## 使用方法
|
|
140
163
|
|
|
@@ -150,6 +173,9 @@ pip install git+https://github.com/10935336/certbot-dns-dnspod-109.git
|
|
|
150
173
|
```
|
|
151
174
|
|
|
152
175
|
#### snap:
|
|
176
|
+
|
|
177
|
+
snap 版本已弃用,将不会收到 v1.0.2 版本之后的更新
|
|
178
|
+
|
|
153
179
|
```bash
|
|
154
180
|
snap install certbot-dns-dnspod-10935336
|
|
155
181
|
snap set certbot trust-plugin-with-root=ok
|
|
@@ -164,12 +190,17 @@ snap connect certbot:plugin certbot-dns-dnspod-10935336
|
|
|
164
190
|
|
|
165
191
|
### 3. 准备凭证文件
|
|
166
192
|
|
|
167
|
-
foobar.ini:
|
|
193
|
+
foobar.ini:
|
|
168
194
|
```ini
|
|
169
195
|
dns_dnspod_109_secret_id=foo
|
|
170
196
|
dns_dnspod_109_secret_key=bar
|
|
171
197
|
```
|
|
172
198
|
|
|
199
|
+
可选参数:
|
|
200
|
+
```ini
|
|
201
|
+
dns_dnspod_109_endpoint=dnspod.tencentcloudapi.com
|
|
202
|
+
```
|
|
203
|
+
|
|
173
204
|
### 4. 准备就绪
|
|
174
205
|
|
|
175
206
|
#### 使用示例
|
|
@@ -178,30 +209,40 @@ dns_dnspod_109_secret_key=bar
|
|
|
178
209
|
|
|
179
210
|
```bash
|
|
180
211
|
certbot certonly \
|
|
181
|
-
-a dns-dnspod-109 \
|
|
182
|
-
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
183
|
-
-d example.com
|
|
212
|
+
-a dns-dnspod-109 \
|
|
213
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
214
|
+
-d example.com
|
|
184
215
|
```
|
|
185
216
|
|
|
186
217
|
获取同时有 `example.com` 和 `www.example.com` 的单个证书
|
|
187
218
|
```bash
|
|
188
219
|
certbot certonly \
|
|
189
|
-
-a dns-dnspod-109 \
|
|
190
|
-
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
191
|
-
-d example.com \
|
|
192
|
-
-d www.example.com
|
|
220
|
+
-a dns-dnspod-109 \
|
|
221
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
222
|
+
-d example.com \
|
|
223
|
+
-d www.example.com
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
获取 `example.com` 的泛域名证书
|
|
227
|
+
```bash
|
|
228
|
+
certbot certonly \
|
|
229
|
+
-a dns-dnspod-109 \
|
|
230
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
231
|
+
-d example.com \
|
|
232
|
+
-d *.example.com
|
|
193
233
|
```
|
|
194
234
|
|
|
235
|
+
|
|
195
236
|
获取 `example.com` 的证书,但设置等待 60 秒(等待 DNS 传播)
|
|
196
237
|
```bash
|
|
197
238
|
certbot certonly \
|
|
198
|
-
-a dns-dnspod-109 \
|
|
199
|
-
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
200
|
-
--dns-dnspod-109-propagation-seconds 60 \
|
|
201
|
-
-d example.com
|
|
239
|
+
-a dns-dnspod-109 \
|
|
240
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
241
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
242
|
+
-d example.com
|
|
202
243
|
```
|
|
203
244
|
|
|
204
|
-
|
|
245
|
+
测试运行(跳过最终证书颁发)
|
|
205
246
|
```bash
|
|
206
247
|
certbot certonly \
|
|
207
248
|
--register-unsafely-without-email \
|
|
@@ -212,8 +253,22 @@ certbot certonly \
|
|
|
212
253
|
--dry-run
|
|
213
254
|
```
|
|
214
255
|
|
|
256
|
+
测试运行,获取 `example.com` 的泛域名证书(跳过最终证书颁发)
|
|
257
|
+
```bash
|
|
258
|
+
certbot certonly \
|
|
259
|
+
--register-unsafely-without-email \
|
|
260
|
+
-a dns-dnspod-109 \
|
|
261
|
+
--dns-dnspod-109-credentials ~/.secrets/certbot/dnspod-109.ini \
|
|
262
|
+
--dns-dnspod-109-propagation-seconds 60 \
|
|
263
|
+
-v \
|
|
264
|
+
--dry-run \
|
|
265
|
+
-d example.com \
|
|
266
|
+
-d *.example.com
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
|
|
215
270
|
## 参数说明
|
|
216
|
-
``--dns-dnspod-109-credentials <路径>``
|
|
271
|
+
``--dns-dnspod-109-credentials <路径>`` 指向凭证文件的路径(必需)
|
|
217
272
|
|
|
218
|
-
``--dns-dnspod-109-propagation-seconds`` 在要求 ACME 服务器验证 DNS 记录之前等待 DNS 传播的秒数。如果显示 DNS 记录添加成功但验证失败,则尝试增加此值
|
|
273
|
+
``--dns-dnspod-109-propagation-seconds`` 在要求 ACME 服务器验证 DNS 记录之前等待 DNS 传播的秒数。如果显示 DNS 记录添加成功但验证失败,则尝试增加此值 (默认值:10)
|
|
219
274
|
|