Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSsl Threaded
Forum Updated to NodeBB v4.3 + New Features

QSsl Threaded

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 1 Posters 525 Views
  • 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #1

    So I am trying to use QSslSocket to connect to a local server, code is available here: https://github.com/VSRonin/ThreadedQSSL
    You will have to create your own server.key SSL key file and server.crt SSL certificate file but the rest is ready to run.
    What I get when I run it is the client connecting but then never emitting encrypted. It just keeps hanging there. any idea why?

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by VRonin
      #2

      Ok, let's try and simplify this.
      First of all I'd like to know if it's a programming error or a deployment/configuration error.

      Could any of you just clone the repo, run qmake make, move to the release folder, create the key and certificate file there and run the program?

      This is the output I get, I never get "Client Encrypted". is it the same for you?

      Client State Changed  QAbstractSocket::HostLookupState
      Client State Changed  QAbstractSocket::ConnectingState
      Client State Changed  QAbstractSocket::ConnectedState
      Client Connected
      

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        I was not passing the passkey to the QSslKey
        Problem solved now

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        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