抛出SSLError的Python请求我正在编写一个简单的脚本,涉及CAS、jSpring安全检查、重定向等。我想使用Kenneth Reitz的python请求,因为这是一件很棒的工作!然而,CAS需要通过SSL进行验证,所以我必须先通过这个步骤。我不知道Python请求需要什么?这个SSL证书应该驻留在哪里?Traceback (most recent call last):
File "./test.py", line 24, in <module>
response = requests.get(url1, headers=headers)
File "build/bdist.linux-x86_64/egg/requests/api.py", line 52, in get File "build/bdist.linux-x86_64/egg/requests/api.py", line 40, in requ
est File "build/bdist.linux-x86_64/egg/requests/sessions.py", line 209, in request
File "build/bdist.linux-x86_64/egg/requests/models.py", line 624, in send File "build/bdist.linux-x86_64/egg/requests/models.py", line 300,
in _build_response File "build/bdist.linux-x86_64/egg/requests/models.py", line 611, in send
requests.exceptions.SSLError: [Errno 1] _ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
添加回答
举报
0/150
提交
取消