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
질문됨 한 달 전134회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠