Skip to content

Commit 7ab23f5

Browse files
p-mongop
authored andcommitted
Fix RUBY-2032 Tutorial references nonexistent tls Ruby option (#1881)
Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
1 parent 26275b4 commit 7ab23f5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/tutorials/ruby-driver-create-client.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,11 @@ on the client or passed to individual operations under ``:write_concern``.
725725
TLS Connections
726726
---------------
727727

728-
To connect to the MongoDB cluster using TLS, pass ``tls`` Ruby or URI option
729-
to the ``Mongo::Client`` constructor. TLS must be explicitly configured on the
730-
client side when the cluster requires TLS connections - there is currently no
731-
automatic detection of whether TLS is required.
728+
To connect to the MongoDB cluster using TLS, pass the ``ssl`` Ruby option or
729+
the ``tls`` URI option to the ``Mongo::Client`` constructor. TLS must be
730+
explicitly requested on the client side when the deployment requires TLS
731+
connections - there is currently no automatic detection of whether the
732+
deployment requires TLS.
732733

733734
The driver will attempt to verify the server's TLS certificate by default, and
734735
will abort the connection if this verification fails. In order for this

0 commit comments

Comments
 (0)