SSL Error while connecting to kite

yes_akash
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)
kite.login_url()
data = kite.generate_session("request_token", api_secret)

SSLError: HTTPSConnectionPool(host='api.kite.trade', 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.