Skip to content

Commit 6a295b3

Browse files
authored
DOCSP-35286 tlsUseSystemCA Parameter (#5938)
* DOCSP-35286 tlsUseSystemCA Parameter * typo * JA feedback
1 parent 1b07592 commit 6a295b3

File tree

7 files changed

+49
-9
lines changed

7 files changed

+49
-9
lines changed

source/includes/extracts-ssl-facts.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

source/includes/extracts-tls-facts.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ref: tls-facts-ca-file
1313
content: |
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
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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.

source/reference/parameters.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,32 @@ Authentication Parameters
930930
- :parameter:`ocspValidationRefreshPeriodSecs`
931931
- :parameter:`tlsOCSPStaplingTimeoutSecs`
932932

933+
.. parameter:: tlsUseSystemCA
934+
935+
|mongod-only|
936+
937+
*Type*: boolean
938+
939+
*Default*: false
940+
941+
Specifies whether MongoDB loads TLS certificates that are already
942+
available to the operating system's certificate authority.
943+
944+
.. important::
945+
946+
.. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
947+
948+
You can set ``tlsUseSystemCA`` only during startup in the
949+
:setting:`configuration file <setParameter>` or with the ``--setParameter``
950+
option on the command line. For example, to set ``tlsUseSystemCA`` to
951+
``true``:
952+
953+
.. code-block:: bash
954+
955+
mongod --setParameter tlsUseSystemCA=true
956+
957+
.. include:: /includes/extracts/ssl-facts-see-more.rst
958+
933959
.. parameter:: tlsWithholdClientCertificate
934960

935961
.. versionadded:: 4.2

source/reference/program/mongod.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,8 +1920,6 @@ TLS Options
19201920
.. include:: /includes/extracts/tls-facts-ca-file.rst
19211921

19221922
.. include:: /includes/extracts/tls-facts-see-more.rst
1923-
1924-
19251923

19261924
.. option:: --tlsClusterFile <filename>
19271925

@@ -2078,6 +2076,10 @@ TLS Options
20782076
Specifies the :file:`.pem` file that contains the root certificate
20792077
chain from the Certificate Authority. Specify the file name of the
20802078
:file:`.pem` file using relative or absolute paths.
2079+
2080+
.. important::
2081+
2082+
.. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
20812083

20822084
Windows/macOS Only
20832085
If using :option:`--tlsCertificateSelector` and/or

source/tutorial/configure-ssl.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ your :binary:`mongod` / :binary:`mongos` instance's
345345
certificate chain includes the certificate of the root
346346
Certificate Authority.
347347

348+
.. important::
349+
350+
.. include:: /includes/fact-ssl-tlsCAFile-tlsUseSystemCA.rst
351+
348352
For example, consider the following :ref:`configuration file
349353
<conf-file>` for a :binary:`~bin.mongod` instance:
350354

source/tutorial/upgrade-cluster-to-ssl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)