ServerSelectionTimeoutError; SSL: CERTIFICATE_VERIFY_FAILED

Here is the error code;

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed:
certificate has expired (_ssl.c:997)’)>, <ServerDescription (‘ac-hokxrtg-shard-00-02.kegkbmg.mongodb.net’, 27017) server_type: Unknown, rtt: None, error=AutoReconnect(‘ac-hokxrtg-shard-00-02.kegkbmg.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)’)>]>

I already installed certifi, pymongo[srv], dnspython and python-dotenv.

I checked for TSL 1.2 in the internet properties and its checked. Also tried disabling 1.0 but it didnt work. Also tried downloading a security certificate that worked for someone else. The certificate was posted under a similar issue as this one.

Found the solution, no worries! Thank you for whoever reads this

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.