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

While creating object of QSSLCertificate, Applications hangs when sonera GemPlus 3G sim is present.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.2
    • 4.7.0
    • Network: SSL
    • None
    • Symbain ^3
    • 5feca34327eb661cc84e1d6f79052dcdbc1a09c4

    Description

      When ever we create an object of QSslCertificate when the sonera 3G Sim is in mobile then, object creation fails and applications jams.

      the code snippet is taken from http://wiki.forum.nokia.com/index.php/TSQ001529_-_Showing_certificate_details_in_Qt

          QSslCertificate* iCrt;    
          // Selecting a certificate from the file dialog
           QString crtFilename = QFileDialog::getOpenFileName(this,QString()
           ,tr("Certificate Files (*.der *.pem)"));
           QFile crtFile(crtFilename);     
           if(!crtFile.open(QIODevice::ReadOnly))
            {         
             return ;
            }
           else
            {         
             if(crtFilename.contains(".der"))
              {           
               // Loading DER certificate
               iCrt = new QSslCertificate(&crtFile,QSsl::Der);  
      		 // this line fails and application jams  when sonera sim is inserted 		 
      		 // else this will pass and all information for the selected certificate is fetched
              }
             else
              {       
               // Loading PEM certificate
               iCrt = new QSslCertificate(&crtFile,QSsl::Pem);		 
              }
             QStringList issuerInfo;
             //Fetching the issuer info      
             issuerInfo.append(iCrt->issuerInfo(QSslCertificate::Organization));
             LogMsg(issuerInfo.at(0));
             
            }
      

      For testing we used a sample der file to load which we use for signing sis.
      also one more observation is when sonera sim is inserted the phone certificates is having some certificates which is attached as screenshot.
      for any other sim this list is empty.

      Attachments

        1. certificateslist.png
          certificateslist.png
          14 kB
        2. crashlog.zip
          13 kB

        Issue Links

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

          Activity

            People

              shkearns Shane Kearns
              amirai Amit Rai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes