kanaka/websockify — Issue #21: wss not connecting
Author: jmcintyre
Created: 2011-12-14 23:09:12+00:00
State: open

When I connect to a websockify port with wss://, the connection fails. The console provides an error:

non-SSL connection received but disallowed

The command I'm using is:

python.exe websockify 82 localhost:8989 --cert="path/to/cert" --key="path/to/key" --ssl-only

The paths are real paths in my call. I've run Wireshark to look at the packets, and at the minimum the packets aren't clear text, so I assume that they are ssl encrypted. Also, the same error happens when connecting from Chrome, Safari, and Safari iOS. If I use ws and get rid of the --cert, --key, and --ssl-only, everything runs fine. If I drop the --ssl-only, websockify crashes on connect listing gyberish data in the stack on websocket.EClose: "gyberish" 400 -

Any thoughts? This is on windows, so it is quite possible I have a config issue in either websockify or python.