File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -213,3 +213,21 @@ revocation checking failed::
213213 [('SSL routines', 'tls_process_initial_server_flight', 'invalid status response')]
214214
215215See :ref: `OCSP ` for more details.
216+
217+ Python 3.10+ incompatibilities with TLS/SSL on MongoDB <= 4.0
218+ .............................................................
219+
220+ Note that `changes made to the ssl module in Python 3.10+
221+ <https://docs.python.org/3/whatsnew/3.10.html#ssl> `_ may cause incompatibilities
222+ with MongoDB <= 4.0. The following are some example errors that may occur with this
223+ combination::
224+
225+ SSL handshake failed: localhost:27017: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)
226+ SSL handshake failed: localhost:27017: EOF occurred in violation of protocol (_ssl.c:997)
227+
228+ The MongoDB server logs may show the following error::
229+
230+ 2021-06-30T21:22:44.917+0100 E NETWORK [conn16] SSL: error:1408A0C1:SSL routines:ssl3_get_client_hello:no shared cipher
231+
232+ To resolve this issue, use Python <=3.10, upgrade to MongoDB 4.2+, or install
233+ pymongo with the :ref: `OCSP ` extra which relies on PyOpenSSL.
You can’t perform that action at this time.
0 commit comments