It may be due to the OpenSSL updates. If you are on ubuntu:22.04, upgrade to ubuntu:23.x. However what OS are you on right now and the mongodb version now?
That error is usually due to a configuration issue in MongoDB Atlas. When you connect from your localhost, there’s no problem because MongoDB Atlas configures your IP address. However, when you move to production, whether it’s AWS, Azure, DigitalOcean, etc., you need to grant access to the public IP. That’s how I resolved it.
I’m also encountering the same error: SSL handshake failed.
I’m using MongoDB version 8.0.9, and I’ve verified that it is accessible from Network Access settings. Most of the time, the application works fine, but occasionally I get this SSL handshake error.
My application is running on the python:3.10-slim Docker image, which I believe is based on Debian Linux.
Can anyone suggest how to resolve this intermittent error?