Open jdkcn opened 3 years ago
之前测试过,应该是支持的,能发下具体的域名吗?可能是 dnspod 修改接口了, 我看下
密钥是对的。我申请 example.net *.example.net 成功的。
是需要具体的域名您才能排查么?
不需要, 我稍后试下
是和 #7 同样的问题,现在已经修复 https://github.com/tengattack/certbot-dns-dnspod/commit/fc995c29397b38a22fa390ed1befb56195e54b25
可以更新下到最新的代码试下看看~
感谢我去试试。
又出现新的错误了。
Encountered exception during recovery: TypeError: delete_record() got an unexpected keyword argument 'type'
Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 33, in <module>
sys.exit(load_entry_point('certbot', 'console_scripts', 'certbot')())
File "/opt/certbot/src/certbot/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/opt/certbot/src/certbot/certbot/_internal/main.py", line 1435, in main
return config.func(config, plugins)
File "/opt/certbot/src/certbot/certbot/_internal/main.py", line 1304, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File "/opt/certbot/src/certbot/certbot/_internal/main.py", line 140, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File "/opt/certbot/src/certbot/certbot/_internal/client.py", line 444, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File "/opt/certbot/src/certbot/certbot/_internal/client.py", line 374, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File "/opt/certbot/src/certbot/certbot/_internal/client.py", line 424, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File "/opt/certbot/src/certbot/certbot/_internal/auth_handler.py", line 70, in handle_authorizations
resps = self.auth.perform(achalls)
File "/opt/certbot/src/certbot/certbot/plugins/dns_common.py", line 60, in perform
self._perform(domain, validation_domain_name, validation)
File "/opt/certbot/src/certbot-dns-dnspod/certbot_dns_dnspod/dns_dnspod.py", line 55, in _perform
self._get_dnspod_client().add_txt_record(domain, validation_name, validation)
File "/opt/certbot/src/certbot/certbot/plugins/dns_common_lexicon.py", line 48, in add_txt_record
self.provider.create_record(type='TXT', name=record_name, content=record_content)
TypeError: create_record() got an unexpected keyword argument 'type'
这个看起来是 certbot 和 lexicon 的兼容性问题 https://github.com/AnalogJ/lexicon/pull/341 修改了字段的名称,certbot 看起来没改,可以修改 /opt/certbot/src/certbot/certbot/plugins/dns_common_lexicon.py
文件,找到 create_record
和 delete_record
使用的地方,先临时将后面的 type 修改为 rtype,修改完这两处应该就好了
晚些时候我看看怎么兼容下
已经有修复 PR 了,等待合并