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: |
1616
1717 If ``--tlsCAFile``/``net.tls.CAFile`` (or
1818 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.
2222
2323 .. include:: /includes/extracts/ssl-facts-x509-ca-file.rst
2424
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ ref: tls-facts-ca-file
1313content : |
1414
1515 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.
1919
2020 .. include:: /includes/extracts/tls-facts-x509-ca-file.rst
2121
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 @@ -889,6 +889,32 @@ Authentication Parameters
889889 - :parameter:`ocspValidationRefreshPeriodSecs`
890890 - :parameter:`tlsOCSPStaplingTimeoutSecs`
891891
892+ .. parameter:: tlsUseSystemCA
893+
894+ |mongod-only|
895+
896+ *Type*: boolean
897+
898+ *Default*: false
899+
900+ Specifies whether MongoDB loads TLS certificates that are already
901+ available to the operating system's certificate authority.
902+
903+ .. important::
904+
905+ .. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
906+
907+ You can set ``tlsUseSystemCA`` only during startup in the
908+ :setting:`configuration file <setParameter>` or with the ``--setParameter``
909+ option on the command line. For example, to set ``tlsUseSystemCA`` to
910+ ``true``:
911+
912+ .. code-block:: bash
913+
914+ mongod --setParameter tlsUseSystemCA=true
915+
916+ .. include:: /includes/extracts/ssl-facts-see-more.rst
917+
892918.. parameter:: tlsWithholdClientCertificate
893919
894920 *Default*: false
Original file line number Diff line number Diff line change @@ -1956,8 +1956,6 @@ TLS Options
19561956 .. include:: /includes/extracts/tls-facts-ca-file.rst
19571957
19581958 .. include:: /includes/extracts/tls-facts-see-more.rst
1959-
1960-
19611959
19621960.. option:: --tlsClusterFile <filename>
19631961
@@ -2114,6 +2112,10 @@ TLS Options
21142112 Specifies the :file:`.pem` file that contains the root certificate
21152113 chain from the Certificate Authority. Specify the file name of the
21162114 :file:`.pem` file using relative or absolute paths.
2115+
2116+ .. important::
2117+
2118+ .. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
21172119
21182120 Windows/macOS Only
21192121 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
336336 certificate chain includes the certificate of the root
337337 Certificate Authority.
338338
339+ .. important::
340+
341+ .. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
342+
339343For example, consider the following :ref:`configuration file
340344<conf-file>` for a :binary:`~bin.mongod` instance:
341345
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ process.
6161
6262 .. code-block:: bash
6363
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>
6565
6666 - id: config
6767 name: Configuration File Options
You can’t perform that action at this time.
0 commit comments