Docs Menu
Docs Home
/ /
TLS/SSL

Obtain TLS Server Certificates

Obtain server certificates to enable TLS encryption for your self-managed MongoDB replica set deployments.

Important

These steps apply to self-managed MongoDB deployments. MongoDB Atlas clusters use TLS by default. If you use Cloud Manager or Ops Manager, configure TLS through your deployment management tool.

Before you start, ensure you have the following information and resources:

This tutorial creates one certificate called mongo0.pem for the first node in your deployment. When generating certificates for additional nodes, be specific in your file names. For example, name the certificate for your first secondary node mongo1.pem.

At the end of this tutorial, you have the following .pem files in /etc/ssl/mongodb:

  • For each node, you have a .pem file that contains the certificate and private key for that node, such as mongo0.pem, mongo1.pem, and mongo2.pem.

  • For the deployment overall, you have the intermediate CA certificate that issued the certificates for each node, such as ca.pem.

To learn how to configure TLS for your self-managed MongoDB deployment, continue to the next tutorial, Configure TLS for a Self-Managed Deployment.

Back

Plan TLS Deployment

On this page