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

QSslCertificate load pem to x509 error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Network: SSL
    • Labels:
      None
    • Environment:
      ubuntu16.04
    • Platform/s:
      Linux/X11

      Description

      pem file content:

       

      ----BEGIN CERTIFICATE----
      MIIDNTCCAh2gAwIBAgIISfFAS51zxOgwDQYJKoZIhvcNAQELBQAwKDEmMCQGA1UE
      AwwdQ2hpYW5zZWMgVGVzdG9ubHkgUm9vdENBIDIwMjEwHhcNMjEwNzIyMDc0MzA1
      WhcNNDYwNzIzMDc0MzA1WjAoMSYwJAYDVQQDDB1DaGlhbnNlYyBUZXN0b25seSBS
      b290Q0EgMjAyMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALjPGVao
      PnXPnkyqNK42K7y/sHlbfv9n5poyNe6dO4YDtg5Txb+P0Dif/BJ2UsIl950p422k
      0UL8p1Nfzvl4Q9q42oqPbK+39KOqqjZIk/iqobRlttUA4VHTnm6fOQVUuYYAm4nK
      0ngp13Nk3Ny+DhlLMtIMcK0aOrMwEU20mD9nVtT+cPQ/2YpM7mq7H8VpGAFUux7V
      2M35DQ9yLXFRTiBm4oJ39GD83EREBIEy5TvOGtmmdmD+1GnIm/ok2W0WNPHuot5D
      LtlS3o/FJX17tQyuPXzsN5Pjht23IosCZp6pG9pp/1ZCY7eJdnpHYVQtaBLAbuMP
      r29d3YHw+zueA/8CAwEAAaNjMGEwHQYDVR0OBBYEFGJOdohEE59+xV15HbGJ8LJu
      lBl1MA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0jBBgwFoAUYk52iEQTn37FXXkdsYnw
      sm6UGXUwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4IBAQAM0C1ZyGTX
      gJthnj0ifiotjWwwdwUHpuguOjOeilTsGRtVnmkt/RUxP/izRgrvPOsTSSoDk6rp
      CgZDAr8YYwcYB4uq8mRAy2/YOWNWXm+Olk1GraxSANK9x1WFHq7UGxj9w4NF3TV0
      CknuQo5B8RXW+ON97EtI7pU5AcM3KJEL+csIdPIN+P+UjYt9uEq7LwBsCo1u7+Qr
      t8bQh1URh+dt/Ihw8tu13t4000HM9cjAFO8QdtPhhFTehSrHRjdi5tFo20hvDhbH
      VbejmFZ8H0cokqLgmwsFBYPT8lb8WTfoemnFKcSkHviePC7/47ftReyjA7gulA7D
      /EXKFat/5RgB
      ----END CERTIFICATE----

       

      QFile certFile("/home/wn/cert.pem");
      certFile.open(QIODevice::ReadOnly);
      QSslCertificate cert(certFile.readAll(), QSsl::Pem);

        Attachments

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

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            muse117 wn wn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes