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

SSL connection not dropped

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • F Offline
    F Offline
    flamonica
    wrote on last edited by
    #1

    Hi all,
    i've implemented a simple SslServer inheriting from QTcpServer and overriding the incomingConnection() as suggested from the documentation.
    However i am stumbling on a strange problem: QSslSocket fires correctly the sslErrors() signal for a "self-signed certificate" but even though i do not call ignoreSslErrors() at any time the connection is not dropped (as it said it should on the docs)
    Any ideas what i might check?

    I am using Qt 4.8.4 on linux gentoo (x86_64)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tzander
      wrote on last edited by
      #2

      maybe you can call reply->abort() ?

      1 Reply Last reply
      0
      • F Offline
        F Offline
        flamonica
        wrote on last edited by
        #3

        Hi Thomas,
        i am not using a QNetworkReply - if that is waht you had in mind. I derived my SslServer from QTcpServer and deal directly with QSslSockets (on server's side).
        Besides, the docs clearly state that if ignoreSslError() is not called then the connection should drop automatically since "Qt is secure by default".
        Now, since i am not experiencing this, i am wondering what i am doing wrong :)

        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