SSL Handshake error using MongoDB VPC Peering

Good day MongoDB Community,

I encounter an error when connecting my AWS lambda to MongoDB Atlas via VPC.

"SSL handshake failed: xxxx.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1147) (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)

The CIDR for the VPC is already added in the Network Access “IP Access List” tab. The outbound peering is already accepted and status is “Available”.

In AWS, I have already added the corresponding Security Groups for outbound access to MongoDB.

Any thoughts how to resolve this issue?

Thank you in advance.

P.S. In my local, I used Compass with the connection string, I also encounter a timeout error.

facing the same error