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 different behaviour in Linux and MacOS
Qt 6.11 is out! See what's new in the release blog

QSsl different behaviour in Linux and MacOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 497 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.
  • E Offline
    E Offline
    enne9
    wrote on last edited by
    #1

    Hello,
    I developed an application using QSsl sockets. Now, everything works fine when the client runs in a Linux environment, while it crashes on MacOS.

    This are the important LOCs in the client (unfortunately I cannot share much more):

    m_clientSocket->addCaCertificates(":/resources/certificates/rootCA.crt");
    m_clientSocket->setPeerVerifyMode(QSslSocket::VerifyPeer);
    

    If I set QSslSocket::VerifyNone instead everything works fine also on Mac. I don't think it is a problem related to the certificate format since it works fine on Linux. The certificate is self-signed.

    Capturing the traffic I found out that the TLS handshake finishes successfully, but right after the client sends a FIN message to the server. I think it is caused by something related to the certificate sent by the server, but I am not sure.
    Is there some additional step required on MacOS I am not aware of?
    Thanks

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

      Hi,

      Linux and macOS have two different backends hence the possible differences.

      What version of Qt are you using ?
      On what version of macOS ?

      Can you provide a minimal compilable example that shows that behaviour ?

      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