Skip to content

Commit b7678c7

Browse files
Updated example
1 parent 2ba6f40 commit b7678c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/connection-strings/mongodb-database-connection-strings.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ For example, to use an account named ``migrator-service`` with password
5858
Adding X.509 Authentication
5959
---------------------------
6060

61-
To connect to MongoDB using X.509 authentication, set the following options:
61+
To connect to MongoDB using X.509 authentication, omit a username and password.
62+
Instead, specify the on-premises host and port or the Atlas cluster URL and set
63+
the following options:
6264

6365
.. code-block::
6466

65-
<atlas or on-premises connection URI>?authSource=$external&authMechanism=MONGODB-X509&tlsCertificateKeyFile=/path/to/cert/client.p12&tlsCertificateKeyFilePassword=certpassword
67+
<on-premises host:port or clusterurl.mongodb.net>?authSource=$external&authMechanism=MONGODB-X509&tlsCertificateKeyFile=/path/to/cert/client.p12&tlsCertificateKeyFilePassword=certpassword
6668

6769

6870
.. list-table::

0 commit comments

Comments
 (0)