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

Peer certificates are most of the time empty in encrypted signal

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.7.0
    • Network: SSL
    • None
    • Mac OS X 10.11.6

    Description

      When connecting to `encrypted` signal of QNetworkAccessManager, most of the time, the peerCertificate is Null.

      Here is the output of the attached sample project:

      $ ./SslError                                                                                                                                                                
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      false
      QSslCertificate("3", "25:57:e5:25:87:f9:d5:12", "NTEjtx4W+NJiLDhk+sAIVg==", ("Google Inc"), ("Google Inc"), QMap((1, "youtubeeducation.com")(1, "youtube.com")(1, "youtu.be")(1, "www.goo.gl")(1, "urchin.com")(1, "googlecommerce.com")(1, "google.com")(1, "google-analytics.com")(1, "goo.gl")(1, "g.co")(1, "android.com")(1, "android.clients.google.com")(1, "*.ytimg.com")(1, "*.youtubeeducation.com")(1, "*.youtube.com")(1, "*.youtube-nocookie.com")(1, "*.url.google.com")(1, "*.urchin.com")(1, "*.metric.gstatic.com")(1, "*.gvt2.com")(1, "*.gvt1.com")(1, "*.gstatic.com")(1, "*.gstatic.cn")(1, "*.googlevideo.com")(1, "*.googlecommerce.com")(1, "*.googleapis.cn")(1, "*.googleadapis.com")(1, "*.google.pt")(1, "*.google.pl")(1, "*.google.nl")(1, "*.google.it")(1, "*.google.hu")(1, "*.google.fr")(1, "*.google.es")(1, "*.google.de")(1, "*.google.com.vn")(1, "*.google.com.tr")(1, "*.google.com.mx")(1, "*.google.com.co")(1, "*.google.com.br")(1, "*.google.com.au")(1, "*.google.com.ar")(1, "*.google.co.uk")(1, "*.google.co.jp")(1, "*.google.co.in")(1, "*.google.cl")(1, "*.google.ca")(1, "*.google-analytics.com")(1, "*.cloud.google.com")(1, "*.appengine.google.com")(1, "*.android.com")(1, "*.google.com")), QDateTime(2016-07-13 13:16:00.000 UTC Qt::TimeSpec(UTC)), QDateTime(2016-10-05 13:16:00.000 UTC Qt::TimeSpec(UTC)))
      
      $ ./SslError
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      qt.network.ssl: Error receiving trust for a CA certificate
      true
      QSslCertificate("", "", "1B2M2Y8AsgTpgAmY7PhCfg==", (), (), QMap(), QDateTime( Qt::TimeSpec(LocalTime)), QDateTime( Qt::TimeSpec(LocalTime)))
      

      This seems to be similar to QTBUG-40401

      Attachments

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

        Activity

          People

            richmoore Richard Moore (qtnetwork)
            epirat epirat
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes