Skip to content

Commit 52c74b7

Browse files
authored
DOCSP-34060: mention that using seedlist enables tls (#141)
* DOCSP-34060: mention that using seedlist enables tls * add taxonomy * make instructions more API specific * RM suggestion
1 parent cb9b5a5 commit 52c74b7

File tree

1 file changed

+20
-0
lines changed
  • source/fundamentals/connection

1 file changed

+20
-0
lines changed

source/fundamentals/connection/tls.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
Enable TLS/SSL on a Connection
55
==============================
66

7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
11+
.. meta::
12+
:keywords: code example, security, authentication
13+
714
.. contents:: On this page
815
:local:
916
:backlinks: none
@@ -37,6 +44,19 @@ You can enable TLS/SSL for the connection to your MongoDB instance
3744
in two different ways: through a parameter in your connection string, or
3845
using a method in the ``MongoClientSettings.Builder`` class.
3946

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+
4060
.. tabs::
4161

4262
.. tab:: ConnectionString

0 commit comments

Comments
 (0)