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

QSslSocket::systemCaCertificates() hangs in N8 when using SIM cards whcih are having their own root CA certificates/user certiticates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.2
    • 4.7.0
    • Network: SSL
    • None
    • Symbian^3, Qt4.7.0, N8
    • d16fcbc6d6b00770a5106027c24ed7cf7e92c1d5

    Description

      Steps to reproduce:
      1) Have a SIM card in device which has a user certificate (Sonera Type A SIM card is one of them)
      2) Run a QT application which has an API call QSslSocket::systemCaCertificates().

      Actual Result:
      The API call hangs the whole application in which it is called. API never recovers back.

      Expected Result:
      API must return the list of QSslCertificates stored in the device and Must not hang.

      Attached is a small sample application where on click on button the API is called.

      QT's bug seems to systematic even with this totally OMB or SSO DE independent piece of code.

      Normal NTN SIM: TLStest works fine
      NTN (GemPlus) SIM /w an user cert
      TLStest stucks inside QSslSocket::systemCaCertificates() does not repaint the UI and thus, "Entering text not shown".
      Reboot, normal SIM, works again.
      NTN (GemPlus) SIM /w an user cert - again stuck.

      void Widget::on_pushButtonTest_clicked()
      {
          QString certInfo;
          ui->textEditStatus->setText("Entering QSslSocket::systemCaCertificates()");
          QList<QSslCertificate> certList = QSslSocket::systemCaCertificates();
          certInfo.sprintf("Got %d cert%s<br>\n",certList.size(), certList.size()>1?"s":"");
          ui->textEditStatus->setText(certInfo);
          for(int i = 0; i < certList.size(); i++)
          {
              certInfo.append("Issuer: " +
              certList[i].issuerInfo(QSslCertificate::Organization) + "<br>\n");
          }
          ui->textEditStatus->setText(certInfo);
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              shkearns Shane Kearns
              yogeshpande Yogesh Pande
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes