I’ve been using pymongo for a while and it’s been working flawlessly, until today. I am no longer able to connect to my cluster using pymongo, as I get the following error:
pymongo.errors.ServerSelectionTimeoutError: cluster: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
The only way I can get this to work is if I add the following argument on the MongoClient constructor ssl_cert_reqs=ssl.CERT_NONE
I haven’t modified the pymongo part of my application for a long time, and it still works perfectly fine when deployed on my server, but locally it doesn’t. Using Windows 10.