[SOLVED] SSL handshake failed on Mac, the same code works fine on Windows
-
wrote on 12 Aug 2014, 07:09 last edited by
Hi,
I'm using Qt 5.3.1 installed via online installers both for Windows (8.1 x64) and MacOS (10.9.4).
When I try to load into a QWebView just any site via https protocol I'm getting 'SSL handshake failed'. Exactly the same code works fine on Windows.
Any hints what's wrong on Mac?
Should I build Qt from sources with openssl-linked option or it's already built with it?
thanks
-
wrote on 12 Aug 2014, 07:12 last edited by
The error message I see is in the WebKit's Inspector console
-
Hi,
IIRC, OS X provided OpenSSL is old, so indeed you should rather build Qt yourself like you suggested and use a more recent version from e.g. macports
-
wrote on 12 Aug 2014, 08:43 last edited by
SGaist, ok thanks, will give it a try
-
wrote on 14 Aug 2014, 16:39 last edited by
were no need to rebuild Qt. The issue was caused by self-signed certificate. Subclassing QWebView and ignoring SSL errors has been enough.
Strange that under Windows the same code works fine when loading the same website (with self-signed certificate).
1/5