Note: Different levels of security can be configured in the Management Pack for MongoDB. The least secure configuration is to leave the default selection of False for the Validate Certificate Against Truststore Advanced Setting. In this configuration, the Management Pack will accept all SSL certificates. For added security, you can enable SSL by following the instructions below and selecting True for the Validate Certificate Against Truststore Advanced Setting.
  1. Obtain the SSL certificate for your MongoDB host server from your Internet browser. Export the certificate as an X.509 Certificate (PEM).

  2. Copy the certificate to your vROps machine.
  3. Use ‘ssh’ to log in to the vROps machine as the root user, then run the following command:

    Linux:

    $VCOPS_BASE/jre/bin/keytool -import -alias <product_alias> -file /tmp/<certfile> -keystore "$VCOPS_DATA_VCOPS/user/conf/ssl/tcserver.truststore" -storepass `grep ssltruststorePassword /storage/vcops/user/conf/ssl/storePass.properties | sed s/ssltruststorePassword=//` -trustcacerts

    Windows:

    %VCOPS_BASE%\jre\bin\keytool -import -alias <product_alias> C:\path\to\certfile -keystore “%VCOPS_DATA_VCOPS%\user\conf\ssl\tcserver.truststore” -storepass <truststore_password> -trustcacerts

    Note: The <truststore_password> is generated by vROps and is located in/storage/vcops/user/conf/ssl/storePass.properties. Copy the password from the ssltruststorePassword=field and paste it in the <truststore_password> placeholder.
    Parameter Descriptions:
    • <product_alias> is a unique name for each key that you add (per host)
    • <certfile> is the location where the cert file was saved
  4. Run the reboot command to re-start the vROps machine for the changes to take effect.