File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
source/fundamentals/connection Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 4
4
Enable TLS/SSL on a Connection
5
5
==============================
6
6
7
+ .. facet::
8
+ :name: genre
9
+ :values: reference
10
+
11
+ .. meta::
12
+ :keywords: code example, security, authentication
13
+
7
14
.. contents:: On this page
8
15
:local:
9
16
:backlinks: none
@@ -37,6 +44,19 @@ You can enable TLS/SSL for the connection to your MongoDB instance
37
44
in two different ways: through a parameter in your connection string, or
38
45
using a method in the ``MongoClientSettings.Builder`` class.
39
46
47
+ .. note:: DNS Seedlist Protocol Enables TLS
48
+
49
+ If you connect by using the DNS seedlist protocol, indicated by the
50
+ ``mongodb+srv`` prefix in your connection string, the driver
51
+ automatically enables TLS/SSL. To disable it, set the ``tls``
52
+ parameter value to ``false`` in your connection string, or set the
53
+ ``enabled`` property to ``false`` in the ``SslSettings.Builder``
54
+ block when creating a ``MongoClientSettings`` instance.
55
+
56
+ To learn more about connection behavior when you use a DNS seedlist,
57
+ see the :manual:`SRV Connection Format </reference/connection-string/#std-label-connections-dns-seedlist>`
58
+ section in the Server manual.
59
+
40
60
.. tabs::
41
61
42
62
.. tab:: ConnectionString
You can’t perform that action at this time.
0 commit comments