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
Forum Updated to NodeBB v4.3 + New Features

SSL server and client not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
qsslsocketqt5
3 Posts 2 Posters 1.3k 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 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
    • Herik LimaH Offline
      Herik LimaH Offline
      Herik Lima
      wrote on 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 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

        • Login

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