如何解决尝试在 OVH VPS 服务器上创建 SSL 证书时出错
我尝试通过 certbot 在我的 VPS 服务器上安装 SSL 证书,但出现以下错误。
2021-05-14 05:15:19,038:ERROR:certbot._internal.log:An unexpected error occurred:
2021-05-14 05:15:19,038:ERROR:certbot._internal.log:TypeError: create_record() got an unexpected keyword argument 'type'
sudo certbot certonly --dns-ovh --dns-ovh-credentials /root/.ovhapi -d thomasmerat.com -d *.thomasmerat.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator dns-ovh,Installer None
Requesting a certificate for thomasmerat.com and *.thomasmerat.com
Performing the following challenges:
dns-01 challenge for thomasmerat.com
dns-01 challenge for thomasmerat.com
Cleaning up challenges
Encountered exception during recovery: TypeError: delete_record() got an unexpected keyword argument 'type'
An unexpected error occurred:
TypeError: create_record() got an unexpected keyword argument 'type'
有谁知道是什么导致了该错误消息? 谢谢
解决方法
好的,我修复了文件.../certbot/plugins/dns_common_lexicon.py
使用 rtype 第 48 行更改参数名称 type :
self.provider.create_record(rtype='TXT',name=record_name,content=record_content)
和第 70 行:
self.provider.delete_record(rtype='TXT',content=record_content)
,
我使用 snap 而不是 pip 修复了它。谢谢
,我在降级 dns-lexicon 时解决了这个问题
pip install dns-lexicon==3.3.22
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。