- Security >
- Enable TLS for a Deployment
Enable TLS for a Deployment¶
On this page
For Ops Manager to monitor, deploy, or back up a MongoDB deployment that uses TLS, you must enable TLS for the Ops Manager project.
Considerations¶
Topics Not in Scope¶
A full description of Transport Layer Security, public key infrastructure, X.509 certificates, and Certificate Authorities is beyond the scope of this tutorial. This tutorial assumes prior knowledge of TLS/SSL and access to valid X.509 certificates.
Note
If you want to reset Authentication and SSL settings for your project, first unmanage any MongoDB deployments that Ops Manager manages in your project.
Procedures¶
Important
You must complete:
before you click Review & Deploy.
Set Existing Deployments to Use TLS¶
Note
With the Client Certificate Mode setting introduced, you can set TLS certificates as optional or required for deployments in your project.
If you wish to enable TLS for existing MongoDB deployments in your Ops Manager project:
Click Deployment, then click the Processes tab, and then the Topology view.¶
On the line listing the process, click Modify.¶
Expand the Advanced Configuration Options section.¶
Set the TLS/SSL startup options.¶
Click Add Option to add each of the following options:
Option Required Value sslMode
Required Select requireSSL
.sslPemKeyFile
Required Provide the absolute path to the server certificate. sslPemKeyPassword
Required Provide the PEM key file password if you encrypted it. sslFIPSMode
Optional Select true
if you want to enable FIPS mode.After adding each option, click Add.
When you have added the required options, click Save.
Enable TLS for the Project¶
On the Select Authentication Mechanisms screen, click Next.¶
If you wish to enable one or more Authentication Mechanisms for your Ops Manager project, select them and then click Next.
Specify the TLS Settings.¶
Field | Action | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Enable TLS | Toggle this slider to Yes. | ||||||||||
TLS CA File Path | The TLS Certificate Authority file is a Type the file path to the TLS Certificate Authority file on every host running a MongoDB process:
This enables the |
||||||||||
Client Certificate Mode | Specify whether client TLS certificates are optional or required for every MongoDB deployment in the project.
|
Click Continue.
Configure the MongoDB Agents.¶
Field | Action |
---|---|
Agent Auth Mechanism | In this list, click X.509 Client Certificate. |
MongoDB Agent Username | Type the MongoDB user name for the MongoDB Agent. |
MongoDB Agent PEM Key File | Type the file path on the Agent hosts to the PEM key file.
|
MongoDB Agent PEM Key Password | Optional. If you encrypted the Agent’s PEM key file, enter its password in this box. |
What if I had TLS certificates for Legacy Backup or Monitoring Agents?
If you updated to the MongoDB Agent from deployments that used Automation, the MongoDB Agent manages the TLS settings.
If you updated to the MongoDB Agent from deployments that did not use Automation but you had Backup Agents, Monitoring Agents, or both, you can set your Backup Agent and Monitoring Agent-specific settings during the Agent update or through the following procedure:
- Navigate to Deployment arrow right icon Agents arrow right icon Downloads & Settings arrow right icon Custom Configurations arrow right icon Edit Custom Configuration.
- Click pencil icon .
- Under the Backup Configurations section:
- Type the desired setting in the Setting box and its corresponding value in the Value box.
- To add more than one Setting, click the + Add Setting link. Another row appears.
- Repeat until all settings have been added.
- Under the Monitoring Configurations section:
- Type the desired setting in the Setting box and the corresponding value in the Value box.
- To add more than one Setting, click the + Add Setting link. Another row appears.
- Repeat until all settings have been added.
You can click the trash icon to remove any settings that you have added.
Click Save to set your changes.¶
Click Review & Deploy to review your changes.¶
Ops Manager displays your proposed changes.
- If you are satisfied, click Confirm & Deploy.
- If you want to make further configuration changes, click Cancel. Click Modify for the cluster to make additional changes.