Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

286
Views
mongo client doesnt read CA file if file is passed as parameter in URL

I am trying to use AWS DocumentDB.

This command works fine:

mongo --tls --host my.cluster-random.ap-south-1.docdb.amazonaws.com:27017 --tlsCAFile rds-combined-ca-bundle.pem --username mongo --password 'supersecure'

This command doesn't:

mongo 'mongodb://mongo@my.cluster-random.ap-south-1.docdb.amazonaws.com:27017/?tlsCAFile=rds-combined-ca-bundle.pem&tls=true'

I get the error:

SSL peer certificate validation failed: unable to get local issuer certificate

My impression is that the second case file doesn't get read. If I put the wrong file name in the first command - I get an OpenSSL error:

Failed global initialization: InvalidSSLConfiguration cannot read certificate authority file: 

In the second case it's like doesn't matter at all. Any combination of TLS options like "ignore" didn't give any effect either.

I am lost a bit. Any advice?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Well... for what ever reason its not supported in mongo shell. From documentation:

https://docs.mongodb.com/manual/reference/connection-string/

tlsCAFile - This connection string option is not available for the mongo shell. Use the command-line option instead.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!