Trouble Connecting to Amazon DocumentDB with TLS Enabled

0

Hello AWS community,

I'm encountering an issue while trying to connect to my Amazon DocumentDB cluster with TLS enabled. I've followed the instructions provided by AWS, but unfortunately, the connection isn't working as expected.

Here are the details I've followed:

  1. Downloaded the Amazon DocumentDB Certificate Authority (CA) certificate:

    • I used the following command to download the CA certificate:
      wget https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem
      
  2. Attempted to connect using the mongo shell:

    • I ran the following command:
      mongosh --ssl --host docdb-abc.cfokdufdhkcj.us-east-1.docdb.amazonaws.com:27017 --sslCAFile global-bundle.pem --username sma --password <insertYourPassword>
      
    • Note: I replaced <insertYourPassword> with my actual password.

However, I'm encountering the following error:

MongoServerSelectionError: read ECONNRESET

I've also tried using the new tags with replacing deprecated tags --tls flag and --tlsCAFile, but the issue persists.

I've also tried for both clusters with 2 certs rds-ca-rsa2048-g1 and rds-ca-2019, but didn't work.

Any insights or suggestions on how to troubleshoot this further would be greatly appreciated. Has anyone else encountered a similar problem?

Thank you in advance for your assistance!

Lucy
已提问 1 个月前128 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则