Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

291
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda