Closed yeeland closed 12 years ago
Usually an OpenSSL version difference.
Looks like I was on 0.9.8r. I just upgraded to 1.0.1c and I'm still getting the same error.
Please make sure you're using the latest version of Requests as well.
Closing until further reports emerge.
I'm having exactly this issue on MacOSX 10.8.3 with OpenSSL 0.9.8r Feb 2011. My Windows 7 machine will connect and verify just fine, but the Mac throws the SSL3_GET_SERVER_CERTIFICATE:certificate verify failed error as listed above. This is using 1.2.0 of requests, Python 2.7.2 (On Mac)/Python 2.7 (on Windows).
What URL is causing it? I have the same setup, so I'm interested to see if I can reproduce it.
connection = requests.get(u'https://forums.eveonline.com', verify=True, stream=True)
Hmm, works fine for me. What version of Requests are you using?
For me:
>>> import requests
>>> r = requests.get('https://forums.eveonline.com', verify=True, stream=True)
>>> r
<Response [200]>
>>> q = requests.get('https://graph.facebook.com')
>>> q
<Response [400]>
On linux with python 2.6 and python 3.2. I think python 2.7.4 (which was recently released) contained some corrections to the ssl module, could you try installing that?
For me the same as for sigmavirus24 with py26,27,31 and 32. What response does the following give you?
openssl s_client -connect forums.eveonline.com:443 -CAfile `python -c 'import requests; print(requests.certs.where())'`
(Note the backticks)
The commandline version has much better error reporting than pythons' version.
I hope it's not something I'm doing wrong but...
and I get this:
in line 604 of requests/models.py
My cert_loc seems to be going with the DEFAULT_CA_BUNDLE_PATH, which is certifi/cacert.pem.
I made sure that I have the latest certifi, too. Anyone have any ideas?