I have a Qt QWebKit based application that needs to use HTTPS to talk to web pages. I have downloaded the QtSDK, as well as the OpenSSL binaries (from here).
My problem lies in deploying my application. I have copied the relevant Qt DLL files, as well as the relevant OpenSSL DLL files (libeay32.dll
and ssleay32.dll
) into my application directory, but when I try to access HTTPS web pages from within my application it fails! The application doesn't crash, but the page is blank. Regular HTTP pages work perfectly fine.
It's clear that there's an error with how I'm distributing OpenSSL with my application, I'm just not sure where I'm going wrong.
I'd really not like to bundle the OpenSSL installer with my application.
Hello anybody reading this trying to debug similar issues. The problem was that the OpenSSL DLL binaries distributed by Shining Light Productions require the Visual C++ redistributables to function properly.
To distribute OpenSSL DLLs with your application without having to also distribute the Visual C++ Redistributables, you can compile OpenSSL yourself using MinGW. The instructions for compiling OpenSSL with MinGW are included in the OpenSSL source distribution.
You may need to distribute the MinGW DLL with your application if you do this. This wasn't a problem for me since I compiled by Qt application with MinGW in the first place.