Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem on SSL with QtWebSockets 1.0
Forum Updated to NodeBB v4.3 + New Features

Problem on SSL with QtWebSockets 1.0

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hakan AFAT
    wrote on last edited by
    #1

    I'm currently testing a secure websocket server with Qt using Lets Encrypt X3 certificate (TLSv1SSLv3 on Qt). Firstly, i tested on firefox with using "Browser Websocket Client" and i saw it works properly.

    And i'm developing a Qt Client with using Qml Websocket part. I got an error at qml debugging console,
    "qml: Error: The issuer certificate of a locally looked up certificate could not be found"
    but my certificate isn't self-signed certificate. It's a verified cert. How can i solve it?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC, Firefox uses its own set of root certificate so it might not be relevant when comparing to your running system.

      You should check that you have Let's Encrypt root certificates installed on your system.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hakan AFAT
        wrote on last edited by
        #3

        I rechecked the root certificate of Let's Encrypt Authority and my system has got that cert.
        In addition, I found a website on ICS https://www.ics.com/blog/using-self-signed-certificates-qt-code for manually push my certificate with using QtNetwork/QSsl library.
        When i try this

        QSslSocket::addDefaultCaCertificate(certificate);
        

        It crashed. On addDefaultCaCertificate, it hasn't got a static structure. It needs an object.
        Second question, how can i push my certificate into qt for using with Qml properly?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you show the stack trace ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved