I had the following line in my script, that stopped working after I formatted my computer:
client=MongoClient(address)
It started to generate the following error:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)
The main change to my stack was updating from python 3.8.5 to 3.8.10, but upon reinstalling the old version, the error persisted.
I run python using venv, on windows10x64.
After searching I managed to get it working:
import certifi
client=MongoClient(address, tlsCAFile=certifi.where())
Still, I would like some help figuring out possible reasons for why it used to work without any explicit certificate as a parameter.
What kind of program/file/library could I have had on my computer that made this possible? Would it be possible that I had a certificate on my computer to which MongoClient defaulted to?