Sample Header Ad - 728x90

Connection string for connecting mongo database with SSL enabled

1 vote
1 answer
1109 views
Am facing some below problem in my mongodb replication environment I have 3 replica set environment with SSL enabled and ssl mode as preferSSL 3 servers has 3 different Key file with common CA file when i try to connect the mongo shell with below command it works fine mongo --ssl --host hostname:port --sslPEMKeyFile "/home/mongod/keyfile.pem" --sslCAFile /home/mongod/CAfile.pem My question is how to provide these details in connection string to connect the database from application perspective MongoDB version: 4.0.2 OS: Amazon Linux Thanks, Vignesh
Asked by vignesh (25 rep)
Jan 8, 2019, 12:18 PM
Last activity: Mar 8, 2025, 04:05 AM