Home:ALL Converter>SSL certificate unknown error when connecting to HTTP Tornado server

SSL certificate unknown error when connecting to HTTP Tornado server

Ask Time:2020-01-23T22:36:16         Author:James

Json Formatter

In my application, I am trying to have a python tornado server communicate with a javascript html page through websockets. I was able to get the connection to work using an un-encrypted ws connection but when I tried to implement the solution on this post:

How to use secure websocket (wss) in Tornado

I get the error:

WARNING:tornado.general:SSL Error on 10 ('::1', 57020, 0, 0): [SSL: SSLV3_ALERT_CERTIFICATE_UNKNOWN] sslv3 alert certificate unknown (_ssl.c:727)

I'm using a self signed certificate and trying to get this working on localhost before I put this onto the real server. I also made sure to change the client code to use wss instead of ws when connecting.

How do I modify my javascript code in the webpage environment so that I can connect to the server even though it is using self signed certificates?

Author:James,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/59880989/ssl-certificate-unknown-error-when-connecting-to-http-tornado-server
yy