Python-Anforderungen, die SSL-Fehler auslösen
Dies ist eine Fortsetzung vonSSLError verwendet Anforderungen für Python:
Ich habe gerade @ installierequests
unter Mac OSX 10.8.5. Mein erster Versuch, @ zu trequests.get
fehlgeschlagen bei fehlendem Zertifikat:
SSLError: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Der Thread oben sagt zu suchen/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/cacert.pem
aber eigentlich habe ich nicht mal ein.../site-packages/requests
Verzeichnis. Mir ist nicht klar, ob dies durch die Installation hätte hinzugefügt werden sollen (ich habepip
)
Weitere Themen und dasrequests
docs sagen zu installierencertifi
, so tat ich. Aber jetzt bekomme ich einen anderen Fehler:
python -c 'import requests; requests.get("https://api.github.com/events")' /usr/lib/anaconda/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Traceback (most recent call last):
...
File "/usr/lib/anaconda/lib/python2.7/site-packages/requests/adapters.py", line 431, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:504: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm
Vielen Dank