@@ -226,32 +226,40 @@ parameters of the connection URI to specify the behavior of the client.
226
226
- ``false``
227
227
- Specifies whether TLS is required for connections to the server.
228
228
Using a ``srvServiceName`` of ``"mongodb+srv"``, or specifying other
229
- ``tls`` prefixed options will default ``tls`` to ``true``.
229
+ ``tls``-prefixed options implicitly sets the value of ``tls`` to
230
+ ``true``.
230
231
231
232
* - **tlsAllowInvalidCertificates**
232
233
- boolean
233
234
- ``false``
234
235
- Specifies whether the driver should error when the server’s
235
- TLS certificate is invalid.
236
+ TLS certificate is invalid. You should only set this option to
237
+ ``true`` for testing purposes.
236
238
237
239
* - **tlsAllowInvalidHostnames**
238
240
- boolean
239
241
- ``false``
240
242
- Specifies whether the driver should error when there is a mismatch
241
243
between the server’s hostname and the hostname specified by the
242
- TLS certificate.
244
+ TLS certificate. You should only set this option to
245
+ ``true`` for testing purposes.
243
246
244
247
* - **tlsCAFile**
245
248
- string
246
249
- ``null``
247
250
- Specifies the path to a file with either a single or bundle of certificate
248
- authorities to trust when making a TLS connection.
251
+ authorities to trust when making a TLS connection. To learn more
252
+ about setting this connection option, see the :ref:`Provide
253
+ Certificate Filepaths <node-tls-filepaths>` section of the TLS guide.
249
254
250
255
* - **tlsCertificateKeyFile**
251
256
- string
252
257
- ``null``
253
258
- Specifies the path to the client certificate file or the client
254
- private key file. If you need both, you must concatenate the files.
259
+ private key file. If you need both, you must concatenate the
260
+ files. To learn more about setting this connection option, see
261
+ the :ref:`Provide Certificate Filepaths <node-tls-filepaths>`
262
+ section of the TLS guide.
255
263
256
264
* - **tlsCertificateKeyFilePassword**
257
265
- string
@@ -263,7 +271,8 @@ parameters of the connection URI to specify the behavior of the client.
263
271
- boolean
264
272
- ``false``
265
273
- Specifies to relax TLS constraints as much as possible, such as
266
- allowing invalid certificates or hostname mismatches.
274
+ allowing invalid certificates or hostname mismatches. You should
275
+ only set this option to ``true`` for testing purposes.
267
276
268
277
* - **w**
269
278
- non-negative integer or string
0 commit comments