-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Docs
-
None
Related to PYTHON-2798 and PYTHON-2808, we should document how to workaround AutoReconnect: SSL handshake failed: oauth2.googleapis.com:443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852) type errors on Windows. One workaround is to install certifi and use tlsCAFile:
client = MongoClient(tlsCAFile=certifi.where())
Another workaround is to rely on Windows built in certification loader by manually connecting to the host before running the python app, like this:
$ powershell.exe "Invoke-WebRequest -URI https://oauth2.googleapis.com/" > /dev/null || true
$ python my_app.py ....
- related to
-
PYTHON-2798 Test failure - Windows FLE tests failing with oauth2.googleapis.com:443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
- Closed
-
PYTHON-2808 Remove Windows certifi workaround added in PYTHON-2798
- Closed