本帖最后由 yar999 于 2022-6-23 17:18 编辑
问题描述:
之前 7.6.0 是正常的, 点更新升级到 7.7 就出现这个问题了
申请 Lets'encrypt 证书或者续签时 SetSSL 请求无法加载响应数据
如下图所示

虽然提示无法响应加载的数据,但是ssl证书却申请好了(或者续签好了)
我们用 btapi 测试, 看到提示 Remote end closed connection without response
- Traceback (most recent call last):
- File "./pssl.py", line 12, in <module>
- jg = api.pssl(sys.argv[1])
- File "/root/scripts/btapi.py", line 47, in pssl
- return self.setssl(domain)
- File "/root/scripts/btapi.py", line 63, in setssl
- result = self.__http_post_cookie(url, pd)
- File "/root/scripts/btapi.py", line 148, in __http_post_cookie
- response = opener.open(req, timeout=timeout)
- File "/www/server/panel/pyenv/lib/python3.7/urllib/request.py", line 525, in open
- response = self._open(req, data)
- File "/www/server/panel/pyenv/lib/python3.7/urllib/request.py", line 543, in _open
- '_open', req)
- File "/www/server/panel/pyenv/lib/python3.7/urllib/request.py", line 503, in _call_chain
- result = func(*args)
- File "/www/server/panel/pyenv/lib/python3.7/urllib/request.py", line 1378, in http_open
- return self.do_open(http.client.HTTPConnection, req)
- File "/www/server/panel/pyenv/lib/python3.7/urllib/request.py", line 1353, in do_open
- r = h.getresponse()
- File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1369, in getresponse
- response.begin()
- File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 310, in begin
- version, status, reason = self._read_status()
- File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 279, in _read_status
- raise RemoteDisconnected("Remote end closed connection without"
- http.client.RemoteDisconnected: Remote end closed connection without response
复制代码
点宝塔面板提供的修复功能也没有效果
附件中测试使用的 btapi 脚本
|
|