当前位置:论坛首页 > Linux面板 > 求助

【已解决】申请Let's Encrypt证书的时候打开提示错误

发表在 Linux面板2020-8-6 14:12 [复制链接] 2 789

Traceback (most recent call last): File "/www/server/panel/class/http_requests.py", line 444, in get return p.get(url,timeout,get_headers(headers),verify,get_stype(s_type)) File "/www/server/panel/class/http_requests.py", line 30, in get result = self._get_py2(url,timeout,headers,verify) File "/www/server/panel/class/http_requests.py", line 155, in _get_py2 r_response = urllib2.urlopen(req,timeout = timeout,context = context) File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib64/python2.7/urllib2.py", line 431, in open response = self._open(req, data) File "/usr/lib64/python2.7/urllib2.py", line 449, in _open '_open', req) File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain result = func(*args) File "/usr/lib64/python2.7/urllib2.py", line 1258, in https_open context=self._context, check_hostname=self._check_hostname) File "/usr/lib64/python2.7/urllib2.py", line 1211, in do_open h.request(req.get_method(), req.get_selector(), req.data, headers) File "/usr/lib64/python2.7/httplib.py", line 1056, in request self._send_request(method, url, body, headers) File "/usr/lib64/python2.7/httplib.py", line 1090, in _send_request self.endheaders(body) File "/usr/lib64/python2.7/httplib.py", line 1052, in endheaders self._send_output(message_body) File "/usr/lib64/python2.7/httplib.py", line 890, in _send_output self.send(msg) File "/usr/lib64/python2.7/httplib.py", line 852, in send self.connect() File "/usr/lib64/python2.7/httplib.py", line 1275, in connect server_hostname=sni_hostname) File "/usr/lib64/python2.7/ssl.py", line 348, in wrap_socket _context=self) TypeError: __init__() got an unexpected keyword argument 'server_hostname'
使用道具 举报 只看该作者 回复
发表于 2020-8-6 14:12:46 | 显示全部楼层
您好,ssh内执行下面命令修复一下

  1. echo 'curl' > /www/server/panel/data/http_type.pl
复制代码
使用道具 举报 回复 支持 反对
发表于 2020-8-6 14:37:31 | 显示全部楼层
谢花郎 发表于 2020-8-6 14:12
您好,ssh内执行下面命令修复一下

已修复完成,感谢
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表