【已回应】申请Let's Encrypt SSL证书报错
宝塔7.0.3论坛发代码提示有非法内容。。。只能上图片了
请求接口地址:/acme?action=apply_cert_api
返回的数据:
请求的接口地址:/ajax?action=get_lines
返回的数据:
错误日志:
{"status": false, "msg": "Traceback (most recent call last):\nFile \"class/http_requests.py\", line 411, in get\n return p.get(url,timeout,get_headers(headers),verify,get_stype(s_type))\nFile \"class/http_requests.py\", line 25, in get\n result = self._get_py2(url,timeout,headers,verify)\nFile \"class/http_requests.py\", line 147, in _get_py2\n r_response = urllib2.urlopen(req,timeout = timeout)\nFile \"/usr/lib64/python2.7/urllib2.py\", line 154, in urlopen\n return opener.open(url, data, timeout)\nFile \"/usr/lib64/python2.7/urllib2.py\", line 431, in open\n response = self._open(req, data)\nFile \"/usr/lib64/python2.7/urllib2.py\", line 449, in _open\n '_open', req)\nFile \"/usr/lib64/python2.7/urllib2.py\", line 409, in _call_chain\n result = func(*args)\nFile \"/usr/lib64/python2.7/urllib2.py\", line 1258, in https_open\n context=self._context, check_hostname=self._check_hostname)\nFile \"/usr/lib64/python2.7/urllib2.py\", line 1211, in do_open\n h.request(req.get_method(), req.get_selector(), req.data, headers)\nFile \"/usr/lib64/python2.7/httplib.py\", line 1056, in request\n self._send_request(method, url, body, headers)\nFile \"/usr/lib64/python2.7/httplib.py\", line 1090, in _send_request\n self.endheaders(body)\nFile \"/usr/lib64/python2.7/httplib.py\", line 1052, in endheaders\n self._send_output(message_body)\nFile \"/usr/lib64/python2.7/httplib.py\", line 890, in _send_output\n self.send(msg)\nFile \"/usr/lib64/python2.7/httplib.py\", line 852, in send\n self.connect()\nFile \"/usr/lib64/python2.7/httplib.py\", line 1275, in connect\n server_hostname=sni_hostname)\nFile \"/usr/lib64/python2.7/ssl.py\", line 348, in wrap_socket\n _context=self)\nTypeError: __init__() got an unexpected keyword argument 'server_hostname'\n"} {"status": true, "msg": "File \"/usr/lib64/python2.7/httplib.py\", line 890, in _send_output\n self.send(msg)\nFile \"/usr/lib64/python2.7/httplib.py\", line 852, in send\n self.connect()\nFile \"/usr/lib64/python2.7/httplib.py\", line 1275, in connect\n server_hostname=sni_hostname)\nFile \"/usr/lib64/python2.7/ssl.py\", line 348, in wrap_socket\n _context=self)\nTypeError: __init__() got an unexpected keyword argument 'server_hostname'\n\n"} YCIK 发表于 2019-12-23 16:37
{"status": false, "msg": "Traceback (most recent call last):\nFile \"class/http_requests.py\", lin ...
请求的参数是:
domains: ["我的域名"]
auth_type: http
auth_to: 1
auto_wildcard: 0
id: 1 https://www.bt.cn/bbs/thread-41951-1-1.html
参考此贴
页:
[1]