File tree Expand file tree Collapse file tree 7 files changed +49
-9
lines changed Expand file tree Collapse file tree 7 files changed +49
-9
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ content: |
16
16
17
17
If ``--tlsCAFile``/``net.tls.CAFile`` (or
18
18
their aliases ``--sslCAFile``/``net.ssl.CAFile``) is not specified
19
- and you are not using x.509 authentication, the system-wide CA
20
- certificate store will be used when connecting to an TLS/SSL-enabled
21
- server.
19
+ and you are not using x.509 authentication, you must set the
20
+ :parameter:`tlsUseSystemCA` parameter to ``true``. This makes MongoDB use
21
+ the system-wide CA certificate store when connecting to a TLS-enabled server.
22
22
23
23
.. include:: /includes/extracts/ssl-facts-x509-ca-file.rst
24
24
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ ref: tls-facts-ca-file
13
13
content : |
14
14
15
15
If ``--tlsCAFile`` or ``tls.CAFile`` is not
16
- specified and you are not using x.509 authentication, the
17
- system-wide CA certificate store will be used when connecting to an
18
- TLS-enabled server.
16
+ specified and you are not using x.509 authentication, you must set the
17
+ :parameter:`tlsUseSystemCA` parameter to ``true``. This makes MongoDB use
18
+ the system-wide CA certificate store when connecting to a TLS-enabled server.
19
19
20
20
.. include:: /includes/extracts/tls-facts-x509-ca-file.rst
21
21
Original file line number Diff line number Diff line change
1
+ When starting a :binary: `~bin.mongod ` instance with
2
+ :ref: `TLS/SSL enabled <configure-mongod-mongos-for-tls-ssl >`, you must
3
+ specify a value for the :option: `--tlsCAFile <mongod --tlsCAFile> ` flag, the
4
+ :setting: `tls.CAFile ` configuration option, or the :parameter: `tlsUseSystemCA `
5
+ parameter.
6
+
7
+ ``--tlsCAFile ``, ``tls.CAFile ``, and ``tlsUseSystemCA `` are all mutually
8
+ exclusive.
Original file line number Diff line number Diff line change @@ -777,6 +777,32 @@ Authentication Parameters
777
777
- :parameter:`ocspValidationRefreshPeriodSecs`
778
778
- :parameter:`tlsOCSPStaplingTimeoutSecs`
779
779
780
+ .. parameter:: tlsUseSystemCA
781
+
782
+ |mongod-only|
783
+
784
+ *Type*: boolean
785
+
786
+ *Default*: false
787
+
788
+ Specifies whether MongoDB loads TLS certificates that are already
789
+ available to the operating system's certificate authority.
790
+
791
+ .. important::
792
+
793
+ .. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
794
+
795
+ You can set ``tlsUseSystemCA`` only during startup in the
796
+ :setting:`configuration file <setParameter>` or with the ``--setParameter``
797
+ option on the command line. For example, to set ``tlsUseSystemCA`` to
798
+ ``true``:
799
+
800
+ .. code-block:: bash
801
+
802
+ mongod --setParameter tlsUseSystemCA=true
803
+
804
+ .. include:: /includes/extracts/ssl-facts-see-more.rst
805
+
780
806
.. parameter:: tlsWithholdClientCertificate
781
807
782
808
*Default*: false
Original file line number Diff line number Diff line change @@ -1972,8 +1972,6 @@ TLS Options
1972
1972
.. include:: /includes/extracts/tls-facts-ca-file.rst
1973
1973
1974
1974
.. include:: /includes/extracts/tls-facts-see-more.rst
1975
-
1976
-
1977
1975
1978
1976
.. option:: --tlsClusterFile <filename>
1979
1977
@@ -2130,6 +2128,10 @@ TLS Options
2130
2128
Specifies the :file:`.pem` file that contains the root certificate
2131
2129
chain from the Certificate Authority. Specify the file name of the
2132
2130
:file:`.pem` file using relative or absolute paths.
2131
+
2132
+ .. important::
2133
+
2134
+ .. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
2133
2135
2134
2136
Windows/macOS Only
2135
2137
If using :option:`--tlsCertificateSelector` and/or
Original file line number Diff line number Diff line change @@ -336,6 +336,10 @@ your :binary:`mongod` / :binary:`mongos` instance's
336
336
certificate chain includes the certificate of the root
337
337
Certificate Authority.
338
338
339
+ .. important::
340
+
341
+ .. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
342
+
339
343
For example, consider the following :ref:`configuration file
340
344
<conf-file>` for a :binary:`~bin.mongod` instance:
341
345
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ process.
61
61
62
62
.. code-block:: bash
63
63
64
- mongod --replSet <name> --tlsMode allowTLS --tlsCertificateKeyFile <TLS/SSL certificate and key file> --sslCAFile <path to root CA PEM file> <additional options>
64
+ mongod --replSet <name> --tlsMode allowTLS --tlsCertificateKeyFile <TLS/SSL certificate and key file> --tlsCAFile <path to root CA PEM file> <additional options>
65
65
66
66
- id: config
67
67
name: Configuration File Options
You can’t perform that action at this time.
0 commit comments