Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [SOLVED] SSL handshake failed on Mac, the same code works fine on Windows
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 2 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    infoctopus
    wrote on last edited by
    #1

    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

    Qt rulez

    1 Reply Last reply
    0
    • I Offline
      I Offline
      infoctopus
      wrote on last edited by
      #2

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

      Qt rulez

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • I Offline
          I Offline
          infoctopus
          wrote on last edited by
          #4

          SGaist, ok thanks, will give it a try

          Qt rulez

          1 Reply Last reply
          0
          • I Offline
            I Offline
            infoctopus
            wrote on last edited by
            #5

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

            Qt rulez

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved