@@ -217,14 +217,15 @@ def __init__(
217
217
- `ssl_cert_reqs`: Specifies whether a certificate is required from
218
218
the other side of the connection, and whether it will be validated
219
219
if provided. It must be one of the three values ``ssl.CERT_NONE``
220
- (certificates ignored), ``ssl.CERT_OPTIONAL``
221
- (not required, but validated if provided), or ``ssl.CERT_REQUIRED``
222
- (required and validated). If the value of this parameter is not
223
- ``ssl.CERT_NONE`` and a value is not provided for ``ssl_ca_certs``
224
- PyMongo will attempt to load system provided CA certificates.
225
- If the python version in use does not support loading system CA
226
- certificates then the ``ssl_ca_certs`` parameter must point
227
- to a file of CA certificates. Implies ``ssl=True``. Defaults to
220
+ (certificates ignored), ``ssl.CERT_REQUIRED`` (certificates
221
+ required and validated), or ``ssl.CERT_OPTIONAL`` (the same as
222
+ CERT_REQUIRED, unless the server was configured to use anonymous
223
+ ciphers). If the value of this parameter is not ``ssl.CERT_NONE``
224
+ and a value is not provided for ``ssl_ca_certs`` PyMongo will
225
+ attempt to load system provided CA certificates. If the python
226
+ version in use does not support loading system CA certificates
227
+ then the ``ssl_ca_certs`` parameter must point to a file of CA
228
+ certificates. Implies ``ssl=True``. Defaults to
228
229
``ssl.CERT_REQUIRED`` if not provided and ``ssl=True``.
229
230
- `ssl_ca_certs`: The ca_certs file contains a set of concatenated
230
231
"certification authority" certificates, which are used to validate
0 commit comments