Many operations in Python require accessing things via https. This includes pip install
command, or just using http.client.HTTPSConnection
, or any modules or applications that use these things internally.
If python was installed from the official python pkg installer, downloaded from https://python.org, then it uses an internal version of openssl, and contains no root certificates. Anything that uses an SSL connection results in this error:
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
How can I install root certs to make the above error go away?