1

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 Jan 8, 2019 at 12:18

1 Answer 1

1

It depends on which driver you are using. https://docs.atlas.mongodb.com/driver-connection/#driver-examples

answered Jan 8, 2019 at 13:55
1
  • Our application team is using mongoose client for connecting mongodb and node.js with version 5.3.7, mongodb they are using 3.1.8 Commented Jan 8, 2019 at 14:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.