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

encrypted() Signal emitted without peerCertificate() set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.2.0, 5.2.1
    • Network: SSL
    • None
    • Win7 Qt 5.2.1 MinGW OpenSSL 1.0.1l
      Android 4.0.4 Qt 5.2.0 x86

    Description

      When QNetworkAccessManager emits encrypted()

      reply->sslConfiguration().peerCertificate().isNull()

      return true, except there is an error which is ignored by ignoreSslErrors().

      Tested with various Sites (including google.com and this).

      Produced output of the attached program:

      Error:  QUrl( "preconnect-https://www.hazardy.de:443" )  
      Encrtypted:  QUrl( "preconnect-https://www.hazardy.de:443" )  false 2 
      Finished:  QUrl( "preconnect-https://www.hazardy.de:443" )  false 2 
      Encrtypted:  QUrl( "preconnect-https://bugreports.qt-project.org:443" )  true 0 
      Finished:  QUrl( "preconnect-https://bugreports.qt-project.org:443" )  false 2 

      I would expect that in the encrypted-handler the certificate(-chain) is set.

      Attachments

        1. main.cpp
          1 kB
        2. test.pro
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richmoore Richard Moore (qtnetwork)
            hazardy Björn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes