It seems to be happening due to lacking SSL certificates in your Python installation. You can try the below command and then do a fresh installation of kiteconnect python client. pip install --upgrade certifi
Requirement already up-to-date: certifi in c:\users\kishan\appdata\local\programs\python\python36\lib\site-packages You are using pip version 9.0.1, however version 20.2.3 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
For which API end-point is the above error thrown?
data = kite.generate_session(request_token, api_secret = api_secret)
pip install --upgrade certifi
Requirement already up-to-date: certifi in c:\users\kishan\appdata\local\programs\python\python36\lib\site-packages
You are using pip version 9.0.1, however version 20.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.