TLS connection to mongodb atlas

In my case to connect to atlas cluster (free tire) I needed to pass additional parameters to MongoClient.
I have edited db.py and added:
MongoClient(url, ssl=True, ssl_ca_certs=certifi.where())

Not sure, if this is required.

Also, is there any issue that I can help with?

Kanika

Thank you for reply. Yes, the cert file is optional, but without ssl=True the SSL exception raised when I try to connect to db

What exception? Because now if you might have created an atlas cluster, it would have ssl inbuilt.
Also, please share what mongo and python version you are using?

Kanika