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

QSslSocket::PeerVerifyMode::VerifyNone is ignored on iOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.15.2
    • Network: Sockets
    • None
    • iPhone SE 2016 / iOS 14.4
    • iOS/tvOS/watchOS

      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
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes