[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

The error [[SSL: CERTIFICATE_VERIFY_FAILED](https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/)] means your system can’t verify MongoDB’s SSL certificate—usually because it’s missing the root or intermediate certificates. This often happens if you’re using Python (like with pymongo) on macOS or Windows without proper certificates installed. A quick fix is to disable certificate validation (only for testing!) using ssl_cert_reqs=ssl.CERT_NONE in your connection string. For a secure fix, download and install the missing CA certificates or update your system’s certificate store. Avoid skipping SSL checks in production environments.