Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-91075

QSslSocket::PeerVerifyMode::VerifyNone is ignored on iOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Network: Sockets
    • Labels:
      None
    • Environment:
      iPhone SE 2016 / iOS 14.4
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      In the startup code of my application, I'm disabling ssl verification globally by doing this:

          auto ssl = QSslConfiguration::defaultConfiguration();
          ssl.setPeerVerifyMode(QSslSocket::PeerVerifyMode::VerifyNone);
          QSslConfiguration::setDefaultConfiguration(ssl);
      

      Later in the code I'm setting up a QML Image item pointing to an https-source with a self-signed certificate, roughly like this:

      Image {
        source: "https://example.com/my/image.jpg"
      }
      

      On all other platforms (tested on macOS, Linux, Windows, Android) this works fine, but on iOS loading fails and the following error message is logged:

      QML Image: SSL handshake failed
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            jan.lorenz Jan Lorenz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes