PDA

View Full Version : httpserver example does not work on Windows



bclay1297@gmail.com
7th May 2020, 22:33
I am trying to use the SSL portion of the qt-examples-master source code. I can build and run the code with non-SSL connections. When I run with SSL connections using either Chrome or my client application the code gets all the way through QSslServer::incomingConnection it does not get to handleConnection to start the HttpRequestHandler. I have tried other code samples I have found and they have similar issues. Is there an SSL example that has been tested on windows 10?

Bruce

ChrisW67
9th May 2020, 03:03
Have you deployed the required OpenSSL libraries on the serve? These are detected at run time and, if not present, will cause SSL functions/negotiation to fail.

bclay1297@gmail.com
9th May 2020, 15:29
Have you deployed the required OpenSSL libraries on the serve? These are detected at run time and, if not present, will cause SSL functions/negotiation to fail.


Chris:
Thanks for your reply.

Yes I have libeay32.dll and ssleay32.dll in the debug folder.

When I call QString sslVersion = QSslSocket::sslLibraryBuildVersionString(); from my code it reports
sslVersion OpenSSL 1.0.2p 14 Aug 2018

Any other thoughts would be greatly appreciated.

Bruce