Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qsslsocket
    Log in to post

    • UNSOLVED AC certificate not trusted during handshake
      General and Desktop • qsslsocket qsslconfigurati qsslcertificate • • hbob  

      1
      0
      Votes
      1
      Posts
      14
      Views

      No one has replied

    • SOLVED QSslSocket HostNotFoundError QT 5.13
      Installation and Deployment • qsslsocket linux mint qt 5.13.0 hostnotfounderr • • Tomaz  

      16
      0
      Votes
      16
      Posts
      428
      Views

      @Tomaz if your issue is solved now, please don't forget to mark your post as such!
    • UNSOLVED QSslSocket and QTcpSocket ... how to know if the connection is incorrect
      General and Desktop • qtcpsocket qsslsocket • • healermagnus  

      3
      0
      Votes
      3
      Posts
      473
      Views

      @healermagnus said in QSslSocket and QTcpSocket ... how to know if the connection is incorrect: Any ideas what I'm missing? You want a delayed handshake. Ideologically it goes like this: You create the QSslSocket object, but operate it as a QTcpSocket. The server and client exchange TCP messages (as per your liking) to try and negotiate whether they should stay in plain TCP or in SSL mode. When the connection is decided to be used over SSL the client calls startClientEncryption, while the server socket calls startServerEncryption to begin the actual SSL handshake. Connecting the TCP error and sslErrors() signals is a must.
    • SOLVED QSslSocket::startServerEncryption() does not lead to an encypted SSL / TLS session
      General and Desktop • qthread qtcpserver qsslsocket • • Dr.G  

      6
      0
      Votes
      6
      Posts
      2556
      Views

      @mrjj Cheers, that worked for me :)
    • openssl version error - need to detect programmatically
      General and Desktop • openssl qsslsocket • • Jeff Andle  

      3
      0
      Votes
      3
      Posts
      1173
      Views

      https://www.openssl.org/policies/releasestrat.html "Minor releases that change the last digit, e.g. 1.0.1 vs. 1.0.2, can and are likely to contain new features, but in a way that does not break binary compatibility." So I don't believe what "1.0.2d vs 1.0.2c" itself causes a problem.
    • UNSOLVED QSslSocket::write(QByteArray(.size)) doesn´t fit to signal encryptedBytesWritten(qint64 written)
      General and Desktop • qsslsocket • • NobodyAtWeekend  

      1
      0
      Votes
      1
      Posts
      511
      Views

      No one has replied

    • UNSOLVED QSslPreSharedKeyAuthenticator working example or documentation
      General and Desktop • qsslsocket ssl-psk • • axslinger  

      1
      0
      Votes
      1
      Posts
      426
      Views

      No one has replied

    • UNSOLVED SSL server and client not working
      General and Desktop • qt5 qsslsocket • • kolegs  

      3
      0
      Votes
      3
      Posts
      946
      Views

      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?
    • SOLVED QSslSocket
      General and Desktop • qsslsocket stall • • davidgyates  

      9
      0
      Votes
      9
      Posts
      1848
      Views

      That's tricky… Good catch !
    • qobject_cast and dynamic cast fail, while static_cast seems to work
      General and Desktop • qsslsocket qobjectcast disconnected dynamiccast staticcast • • Bart_Vandewoestyne  

      8
      0
      Votes
      8
      Posts
      4632
      Views

      @Bart_Vandewoestyne said: Could my educated guess be correct? Your guess sounds reasonable to me. Does anybody have any idea why the original author of this code decided to make a difference between linux and non-linux? If I remove the ifdef and simply use close() in all situations, things seem to work, although it seems that in this case the ClientSslSocket destructor is no longer called (and I'm not sure if this is a good thing...). Nope, sorry. Are there any comments in the code, or in the commit history? Could you ask the author directly? What would be the clean solution here? How should FooBar's destructor look like? It's hard to say without knowing how the rest of the program is designed. Maybe you can manually disconnect the socket before deleting it?
    • Problem with establishing a connection between Qt Https Server and browser.
      General and Desktop • qt5 windows openssl server qsslsocket https browser qsslcertificate • • Dooms  

      2
      0
      Votes
      2
      Posts
      1153
      Views

      @Dooms said: sslConfiguration You don't seem to have actually associated the sslConfiguration object with the QSslSocket object. You can set the cert/key files directly on the QSslSocket if that helps simplify your code for testing...
    • [SOLVED] Threaded QTcpServer Multiple QSslSocket clients with QDataStream readyread() sometimes not emitted
      General and Desktop • qthread qtcpserver qeventloop qmysql qsslsocket qdatastream • • SebastianS  

      2
      0
      Votes
      2
      Posts
      1682
      Views

      Ok guy thank you for that much replies :P! I solved the issue by myself anyway. In case sombebody has a similar problem here comes the solution: What I did wrong was that I connected a time consuming function to the UpdateClient::tcpReady() slot. In this function I did some stuff which also lead to the emission of UpdateClient::tcpReady(). This broke the QEventQueue. So to what I had to chance was to skip the direct signal slot connection an do this in the UpdateClient::tcpReady(): QTimer::singleShot(0, this, SIGNAL(updateAvailable())); No everything is working fine ;).
    • [SOLVED] Multithreaded QSslSocket Server Problem
      General and Desktop • qthread qtcpsocket qtcpserver ssl qsslsocket qssl qsocketnotifier • • SebastianS  

      3
      0
      Votes
      3
      Posts
      2621
      Views

      Hi, since I am convinced that somebody else will also have similar problems I wrote a tutorial how to create a multithreaded server: https://five-s.de/en/how-to-create-a-multithreaded-server-in-qt Best regards
    • Problem with creating ssl server using QSslSocket
      General and Desktop • qtcpsocket network qtcpserver server qsslsocket network socket • • Eehsanmgh  

      11
      0
      Votes
      11
      Posts
      4028
      Views

      @t3685 Yes I'm sure.
    • QSslSocket error without sslErrors emited
      General and Desktop • qt 5.4 openssl ssl qsslsocket ssl failed socketerror qsslerror • • onek24  

      2
      0
      Votes
      2
      Posts
      1165
      Views

      It's because Qt (or rather QSslSocket) closes the connection immediately after emitting the error() signal.
    • Wysyłanie maila za pomocą Qt, raportowanie stanu aplikacji
      Polish • qsslsocket tcpsocket smtp email mail gmail problem do rozw imtp • • Huragan  

      2
      0
      Votes
      2
      Posts
      1312
      Views

      @Huragan Witam. Widzę, że nie ma zbytniego zainteresowania tym postem, ale jakoś sobie radzę. :) Doszedłem do etapu w którym mailowy serwer google (gmail) odmawia mi połączenia się ze sobą z powodu niskiego poziomu bezpieczeństwa zapewnianego przez moją aplikację. Rozwiązanie tego problemu przyszło łatwo. Zezwoliłem na łączenie się z moją skrzynką mailową mniej bezpiecznym aplikacjom. [https://support.google.com/accounts/answer/6010255]
    • SLL error on Windows
      General and Desktop • windows pyside openssl ssl qsslsocket • • shackra  

      2
      0
      Votes
      2
      Posts
      1434
      Views

      Try to install the latest OpenSSL libraries for Windows. You can find it here : https://www.openssl.org/related/binaries.html