File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -281,11 +281,16 @@ Pass the location of your client certificate file as the value of
281
281
.. literalinclude:: /code-snippets/authentication/x509.js
282
282
:language: javascript
283
283
284
- TLS/SSL Options
285
- ~~~~~~~~~~~~~~~
284
+ .. tip::
285
+
286
+ To learn more about enabling TLS on a connection, see
287
+ :ref:`node-connect-tls`.
288
+
289
+ TLS Options
290
+ ~~~~~~~~~~~
286
291
287
- The following table describes each of the TLS/SSL options that can be passed
288
- as a parameter in the connection URI.
292
+ The following table describes the TLS options that you can set in a
293
+ connection URI.
289
294
290
295
.. list-table::
291
296
:widths: 35 12 10 43
@@ -299,7 +304,7 @@ as a parameter in the connection URI.
299
304
* - ``tls``
300
305
- boolean
301
306
- ``false``
302
- - Specifies whether to use TLS/SSL connections .
307
+ - Specifies whether to enable TLS on the connection .
303
308
304
309
* - ``tlsInsecure``
305
310
- boolean
Original file line number Diff line number Diff line change @@ -189,16 +189,15 @@ You can include the filepaths for your certificates as client options to
189
189
retrieve your certificates while connecting with TLS.
190
190
191
191
The following code shows how to provide certificate filepaths as options
192
- in your ``MongoClient``:
192
+ in your ``MongoClient``:
193
193
194
194
.. code-block:: js
195
- :emphasize-lines: 4-6
195
+ :emphasize-lines: 4-5
196
196
197
197
// Pass filepaths as client options
198
198
const client = new MongoClient(uri, {
199
199
tls: true,
200
200
tlsCAFile: `<path to CA certificate>`,
201
- tlsCertificateFile: `<path to public client certificate>`,
202
201
tlsCertificateKeyFile: `<path to private client key>`,
203
202
});
204
203
Original file line number Diff line number Diff line change @@ -48,11 +48,21 @@ What's New in 6.0
48
48
49
49
The {+driver-short+} v6.0 release includes the following features:
50
50
51
+ .. important:: Deprecation Notice
52
+
53
+ All of the ``ssl``-prefixed options in the ``MongoClientOptions``
54
+ type are deprecated. In addition, the ``tlsCertificateFile`` option
55
+ is deprecated.
56
+
57
+ Instead, you should store your certificates in a ``SecureContext``
58
+ object or set the ``tls``-prefixed options in your
59
+ ``MongoClientOptions`` instance. To learn more, see :ref:`node-connect-tls`.
60
+
51
61
- Removes support for the ``addUser()`` helper command. Use the
52
62
:manual:`createUser </reference/command/createUser>` MongoDB Shell command instead.
53
63
- Removes support for the ``collStats`` operation. Use the
54
64
:manual:`$collStats </reference/operator/aggregation/collStats>` aggregation operator
55
- instead.
65
+ instead.
56
66
57
67
.. _version-5.7:
58
68
You can’t perform that action at this time.
0 commit comments