SSL Error while connecting to kite

I am getting below SSL error even after adding the certificate into file shown in certifi.verify( i.e. Followed this link )

Session opens in chrome without issue , and can fetch request token from there.

kite = KiteConnect(api_key)
data = kite.generate_session("request_token", api_secret)

SSLError: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /session/token (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')))

Sign In or Register to comment.