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 個月前檢視次數 129 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南