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. SSL server and client not working
QtWS25 Last Chance

SSL server and client not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
qsslsocketqt5
3 Posts 2 Posters 1.2k 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.
  • K Offline
    K Offline
    kolegs
    wrote on 21 Mar 2016, 12:33 last edited by
    #1

    Hi

    I need to create server and a client both using QSslSocket. I found an example https://github.com/dgraves/QSslChat that works fine on Qt4.8 but after a few changes I cannot run it on Qt5.

    The problem is encryption never started(signal encrypted() is never emitted) also I get no errors.

    Does anyone tried to run SslServer and SslClient? Are there any working examples?

    Thanks in advance.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Herik Lima
      wrote on 21 Mar 2016, 13:45 last edited by
      #2

      Hi
      You can take a look at QtWebApp project: http://stefanfrings.de/qtwebapp/index-en.html
      It uses QSslSockets

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kolegs
        wrote on 22 Mar 2016, 09:38 last edited by
        #3

        I dont think this example uses QSslSocket at all.

        After some investigation I found out that client is sending some data after connecting to start handshake, but server does not response.

        What is really strange socket->waitForEncypted(30000) alweys returns false and never waits the time(30 sec).

        I've set both certificate and key so it should work. Any ideas?

        1 Reply Last reply
        0

        1/3

        21 Mar 2016, 12:33

        • Login

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