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

For me - After a few hours I found this thread that said that I need to open the client using certifi

Able to use Compass with no problems, Atlas UI all looks good but couldn’t connect using Python.

Using Python 3.11, pymongo==3.11, Mac Monterey, VS Code

As a newbie I am disappointed that I had to spend a lot of time on ChatGPT and Google to resolve this.
Not a fantastic first impression but happy to blame myself for something i missed - maybe others will miss whatever I missed too…