sslechoserver demo does not work
This question was posted in the past, but I didn't see a solution. So I'll ask again, and hopefully somebody more knowledgeable than me has solved it since then.
I built and ran the Qt sslechoserver demo on Windows by loading its PRO project file into Visual Studio with the Qt add-in, setting the appropriate directories to find Qt components, and loading OpenSSL (so that SSL methods would be resolved at runtime). The demo comes up and indicates it's listening on port 1234, as expected.
The problem is that I cannot make a connection to this server with the supplied WebSocket client, sslechoclient.html. I get the following error when I attempt the connection (the demo and server use: wss://localhost:1234):
I suspect the problem has something to do with the certificate authorization.
Note that I have had no problem building/running the non-SSL version of this demo (which opens from the client with ws://localhost:1234).
Any guidance on this would be most appreciated.
Thanks very much.
Any solution? With Qt 5.5 the problem remains unsolved and only thing I can think about is using some workaround (eg. encrypting message strings or using third-party library for SSL) which doesn't solve the original problem (bug?).
I have the same problem here, looking for a fix...