Error after upgrading my mongoDB subscription

I get this error
pymongo.errors.ServerSelectionTimeoutError: ****-shard-00-01.dlu0y.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate …"
It worked perfectly fine before I upgraded my subscription. Now for some reason it does not work

I think this stackoverflow article outlines the fix. Basically you have to run a script to update your certificates.

https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error

1 Like