Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

283
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda