I am using the slackClient library to create a slack bot but I get ssl verification failed error when I use api.call() method of slack client. I was facing the same issue while using pip install but that got resolved by using --trusted-host. Is there some configuration in python required to access machine certs?
I have already imported the root cert into windows certificate manager and I am able to open the URL in browser securely without encountering message like "There is a problem with this website’s security certificate". I do not want to disable the SSL verification
I referred to the answers given at SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
but slack client library calls urllib3 internally and I am not able to specify ca-file for it.
Is there a way to resolve this issue and configure python to use machine certs directly?
REQUESTS_CA_BUNDLE
env variable?certmgr.msc
gives you aCopy to file
option for each certificate, in the details tab), and then you can setREQUESTS_CA_BUNDLE
to point to the location of the saved certificate. And here's how to set environment variables in windows 10