Secure websocket goes timeout during handshake
I'm creating a secure websocket for my webchannel and access it from my navigator (wss://localhost:12345).
This work fine on my computer.
However, when I put the same excutable (with dlls, certificats, etc) on a production machine, I get a timout on the handshake.
Nothing is different.
The network card information are:
Intel(R) Dual Band Wireless-AC 3165
Intel(R) Ethernet Connection I219-V
Do you know how to solve this ?
Thanks in advance
Might be a silly question but did you check that you also deployed the OpenSSL libraries ?
What OS are you using?
I had similar problem on OSX with the websocket Qt example.
When I started the application running from a mounted pendrive it seems it couldn't connect using SSL.
When I moved the application in the main partition the problem disappeared.
I'm using windows 10. And the application doesn't crash.
I will take a look at OpenSSL librairies but since I use windeployqt it should be fine.
You're right, I don't see any dll from OpenSSl.
Should I install a specific version on the computer or just add some librairies to my app directory ?
You should get an OpenSSL build that matches your compiler.
Current (as in we are the 19.05.2017) constraint: use a version smaller than 1.1. OpenSSL 1.1 breaks the API. There's currently a new backend in preparation for Qt to accommodate the new API.
I tried to install OpenSSl for windows 1.0.2 from https://slproweb.com/products/Win32OpenSSL.html
But this didn't work neither.
I tried to change environment variable and stuff but I still get the same error.
Which architecture are you building your application for ?
Which compiler are you using ?
Was your installed OpenSSL built with the same compiler as Qt ?
I'm building for X64 architecture with msvc2015 (Qt 5.8).
The version of OpenSSL is for x64 too.
Since 5.9 is now out, did you test with it to see if it's still happening ?
Doesn't work neither in 5.9.
I deactivated the firewall (just in case) but not result neither.
The thing is, I cannot debug it on that machine because QtCreator experience a bug on this device (raison unknown).
What are the symptoms of that bug ?
The bug with Qt Creator?
When the editor open a project, it get stuck in an infinite loop while trying to parse the project file (.pro).
Is it happening with 4.3 ?
I tried with 4.3 now.
It open the project successfully.
But I don't get any error or message in the console.
I put a breakpoint in the new connection handler but is never triggered.
The connection might be blocked before the get to the application.
I tried open the port on the in-coming and out-coming rules of the firewall, I've even tried to deactivate but it doesn't solve the problem.
Something is blocking the connection without creating any error but I don't know what.