@@ -15,11 +15,7 @@ mongocli config set
15
15
The ``config set`` command sets the following
16
16
properties in the specified profile for {+mcli+}:
17
17
18
- - ``org_id`` - Unique identifier of an organization
19
- - ``project_id`` - Unique identifier of a project
20
- - ``public_api_key`` - Public key for programmatic access
21
- - ``private_api_key`` - Private key for programmatic access
22
- - ``ops_manager_url`` - |mms| base URL for |onprem| only
18
+ .. include:: /includes/config-set-properties.rst
23
19
24
20
You can set also set these properties by directly editing the
25
21
:ref:`mcli-config-file` or by setting the :ref:`environment
@@ -62,13 +58,7 @@ Options
62
58
- Property to set in the profile. Value
63
59
can be one of the following:
64
60
65
- - ``org_id`` - Unique identifier of the organization
66
- - ``project_id`` - Unique identifier of the project
67
- - ``public_api_key`` - Public key for programmatic
68
- access
69
- - ``private_api_key`` - Private key for programmatic
70
- access
71
- - ``ops_manager_url`` - |mms| base URL for |onprem| only
61
+ .. include:: /includes/config-set-properties.rst
72
62
73
63
- yes
74
64
@@ -81,6 +71,9 @@ Options
81
71
- Public |api| key for ``public_api_key``
82
72
- Private |api| key for ``private_api_key``
83
73
- |mms| base URL for ``ops_manager_url``
74
+ - Full path to the CA certificate for
75
+ ``ops_manager_ca_certificate``
76
+ - ``yes`` or ``no`` for ``ops_manager_skip_verify``
84
77
85
78
- yes
86
79
@@ -104,7 +97,9 @@ where ``<property-name>`` can be:
104
97
- ``project_id``
105
98
- ``public_api_key``
106
99
- ``private_api_key``
107
- - ``ops_manager_url``
100
+ - ``ops_manager_url``
101
+ - ``ops_manager_ca_certificate``
102
+ - ``ops_manager_skip_verify``
108
103
109
104
.. _config-set-examples:
110
105
@@ -200,3 +195,43 @@ The previous command prints the following to the terminal:
200
195
:copyable: false
201
196
202
197
Updated prop 'private_api_key'
198
+
199
+ Set Custom CA Certificate File
200
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201
+
202
+ The following example uses the ``mongocli config set`` command to
203
+ set a custom CA certificate file for |onprem| in a profile named
204
+ ``egOMprofile``.
205
+
206
+ .. code-block:: sh
207
+ :copyable: false
208
+
209
+ mongocli config set ops_manager_ca_certificate /etc/ssl/certs/ca.pem -p egOMprofile
210
+
211
+ The previous command prints the following to the terminal:
212
+
213
+ .. code-block:: sh
214
+ :copyable: false
215
+
216
+ Updated property 'ops_manager_ca_certificate'
217
+
218
+ Set Certificate Verification
219
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
220
+
221
+ The following example uses the ``mongocli config set`` command to
222
+ skip TLS certificate verification for |onprem| in a profile named
223
+ ``egOMprofile``.
224
+
225
+ .. include:: /includes/admonitions/skip-verify-insecure.rst
226
+
227
+ .. code-block:: sh
228
+ :copyable: false
229
+
230
+ mongocli config set ops_manager_skip_verify yes -p egOMprofile
231
+
232
+ The previous command prints the following to the terminal:
233
+
234
+ .. code-block:: sh
235
+ :copyable: false
236
+
237
+ Updated property 'ops_manager_skip_verify'
0 commit comments