Skip to content

Commit 9401335

Browse files
authored
(DOCSP-16851) [OM] Fix curl command bug in Add CA Certificate to Ops Manager Java Trust Store (#747)
In step 4 of the [Add CA Certificate to Ops Manager Java Trust Store](https://www.mongodb.com/docs/ops-manager/current/tutorial/add-ca-cert-to-om/#add-ca-certificate-to-mms-java-trust-store) page: (1) the "cacert" option should have two leading dashes but the current doc only has one. (meaning it should be "--cacert", instead of "-cacert". (2) java trust store is in JKS or PKCS12 format and cannot be accepted as the value for the "cacert" option (which only accepts Pem) of the curl command. To verify bullet point (1), please use "man curl" command to check the help doc. To verify bullet point (2), please refer to my test attached [Test certificate and trust store.pdf](https://jira.mongodb.org/secure/attachment/584629/584629_Test+certificate+and+trust+store.pdf). - [DOCS-16851](https://jira.mongodb.org/browse/DOCS-16851) - [STAGING](https://deploy-preview-747--docs-ops-manager.netlify.app/tutorial/add-ca-cert-to-om/) ### Self-Review Checklist - [ ] [Define](https://wiki.corp.mongodb.com/display/DE/Taxonomy+tagging+instructions) taxonomy [values](https://wiki.corp.mongodb.com/display/DE/Docs+Taxonomy) at top of page. - [ ] Add genre facets (tutorial or reference), as in this [example PR](10gen/cloud-docs#5042). - [ ] Add programmingLanguage (if necessary). - [ ] Add meta keywords (if necessary). - [x] Resolve any new warnings or errors in the build. - [x] Proofread for spelling and grammatical errors. - [x] Check staging for rendering issues. - [x] Confirm links are working.
1 parent 07133d6 commit 9401335

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

source/includes/steps-add-ca-cert-to-om-truststore.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,19 @@ ref: add-credentials-automation-click-credentials
4646
title: "Test an HTTPS request to Ops Manager to confirm connectivity."
4747
content: |
4848
49-
After adding your webhook URL to the following command,
50-
run it to test your webhook's HTTPS connectivity with Ops Manager.
49+
a. Convert your Java keystore file into PEM format.
5150
52-
.. code-block:: sh
51+
Java keystores are stored in either JKS (Java KeyStore) or PKCS12 format. These formats
52+
are incompatible with the curl ``--cacert`` option.
53+
54+
Use a tool of your choosing, such as ``openssl``, to convert your Java keystore file.
55+
56+
#. Replace the placeholder text in the following command with the path to your PEM certificate
57+
and your webhook URL:
58+
59+
.. code-block:: sh
5360
54-
sudo curl -vvvv -cacert /opt/mongodb/mms/jdk/lib/security/cacerts <WebhookURL>
61+
sudo curl -vvvv --cacert </path/to/cacerts.pem> <WebhookURL>
5562
63+
#. Run the command to test your webhook's HTTPS connectivity with Ops Manager.
5664
...

0 commit comments

Comments
 (0)