You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ca_certs file contains a set of concatenated CA certificates, which are used to validate certificates passed from MongoDB.
148
-
ssl_ca_certs = None
149
147
# Specifies whether a certificate is required from the other side of the connection, and whether it will be validated if provided
148
+
# DEPRECATED FOR REMOVAL since 3.9.0: Use tls_allow_invalid_certificates with the following: The 'optional' and 'required' values are equivalent to tls_allow_invalid_certificates=False. The 'none' value is equivalent to tls_allow_invalid_certificates=True. This option is a needlessly more complex version of tls_allow_invalid_certificates.
150
149
# Valid values: none, optional, required
151
150
ssl_cert_reqs = None
152
151
# Certificate file used to identify the localconnection
152
+
# DEPRECATED FOR REMOVAL since 3.9.0: Use tls_certificate_key_file with a path to a file containing the concatenation of the files from ssl_keyfile and ssl_certfile. This option is ignored by pymongo.
153
153
ssl_certfile = None
154
154
# Private keyfile used to identify the local connection against MongoDB.
155
+
# DEPRECATED FOR REMOVAL since 3.9.0: Use tls_certificate_key_file with a path to a file containing the concatenation of the files from ssl_keyfile and ssl_certfile. This option is ignored by pymongo.
155
156
ssl_keyfile = None
156
157
# If True and `ssl_cert_reqs` is not None, enables hostname verification
158
+
# DEPRECATED FOR REMOVAL since 3.9.0: Use tls_allow_invalid_hostnames with the opposite value from this option.
157
159
ssl_match_hostname = True
160
+
# Create the connection to mongodb using TLS.
161
+
# This option has a deprecated alias: ssl
162
+
tls = False
163
+
# Specifies whether MongoDB is allowed to pass an invalid certificate. This defaults to False to have security by default. Only temporarily set to True if you need to debug the connection.
164
+
tls_allow_invalid_certificates = False
165
+
# If True and `tlsAllowInvalidCertificates` is True, disables hostname verification. This defaults to False to have security by default. Only temporarily set to True if you need to debug the connection.
166
+
tls_allow_invalid_hostnames = False
167
+
# ca_certs file contains a set of concatenated CA certificates, which are used to validate certificates passed from MongoDB.
168
+
# This option has a deprecated alias: ssl_ca_certs
169
+
tls_ca_file = None
170
+
# Client certificate used to identify the local connection against MongoDB. The certificate file must contain one or both of private key and certificate. Supplying separate files for private key (ssl_keyfile) and certificate (ssl_certfile) is no longer supported. If encrypted, pass the password or passphrase in tls_certificate_key_file_password.
171
+
tls_certificate_key_file = None
172
+
# The password or passphrase to decrypt the file in tls_certificate_key_file. Only set this if tls_certificate_key_file is encrypted.
173
+
tls_certificate_key_file_password = None
158
174
# username for db login
159
175
username = None
160
176
# Compression level when compressors is set to zlib. Valid values are -1 to 9. Defaults to 6.
0 commit comments