You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
64
+
65
+
.. code-block::
66
+
67
+
<on-premises host:port or clusterurl.mongodb.net>?authSource=$external&authMechanism=MONGODB-X509&tlsCertificateKeyFile=/path/to/cert/client.p12&tlsCertificateKeyFilePassword=certpassword
68
+
69
+
70
+
.. list-table::
71
+
:header-rows: 1
72
+
73
+
* - Option
74
+
- Value
75
+
76
+
* - :urioption:`authSource`
77
+
- ``$external``
78
+
79
+
* - :urioption:`authMechanism`
80
+
- ``MONGODB-X509``
81
+
82
+
* - :urioption:`tlsCertificateKeyFile`
83
+
- The path to the ``.p12`` file that contains the certificate and key to
84
+
present to the mongod or mongos instance.
85
+
86
+
:gold:`IMPORTANT:` Unlike other MongoDB products, Relational Migrator
87
+
requires a path to a ``.p12`` file, not a ``.pem`` file. If your
88
+
certificate is saved as a ``.pem`` file, you can convert it using a tool
89
+
like OpenSSL's `PKCS12 command <https://docs.openssl.org/master/man1/openssl-pkcs12/>`__:
0 commit comments