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.