Shoonya-Dev / ShoonyaApi-py

139 stars 128 forks source link

Web Socket error - SSL: CERTIFICATE_VERIFY_FAILED #174

Open arijitn1 opened 1 month ago

arijitn1 commented 1 month ago

dear @Shoonya-Dev ,

getting the below error please help,

following test performed still no luck.

  1. latest websocket-client installed
  2. added the 'venv\Lib\site-packages\certifi\cacert.pem' to the Trusted Root
  3. pip install python-certifi-win32 - also installed

_DEBUG:NorenRestApiPy.NorenApi:None DEBUG:NorenRestApiPy.NorenApi:<websocket._app.WebSocketApp object at 0x000002102B7A1850> ERROR:websocket:[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (ssl.c:1000) - goodbye

arijitn1 commented 1 month ago

@Shoonya-Dev api version 30 is installed.

krishnasinghshahi commented 1 month ago
  1. It will likely not work as described. Instead, try this method: Open PowerShell with administrative privileges and then copy and paste these commands:

certutil -generateSSTFromWU roots.sst certutil -addstore -f root roots.sst del roots.sst

Make sure to check your code as it may require the websockets module (install with pip).

Update me on this if didn't work.

SHIVANIUM-GIT commented 2 weeks ago

@krishnasinghshahi @arijitn1 @Shoonya-Dev I solve that problem