Important: Please read the Qt Code of Conduct -

[SOLVED] SSL handshake failed on Mac, the same code works fine on Windows

  • 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?


  • The error message I see is in the WebKit's Inspector console

  • Lifetime Qt Champion


    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

  • SGaist, ok thanks, will give it a try

  • 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).

Log in to reply