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. Pop3S with SSL

Pop3S with SSL

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 2.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.
  • T Offline
    T Offline
    tailor1234
    wrote on last edited by
    #1

    hello,
    i start to wright my own pop3s client but i have problems to connect to the server.
    has anybody any experience with with topic or maybe a manual???? ;-)
    thanx a lot

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

      Hi and welcome to devnet,

      Since it's a Qt forum, how is it related to Qt ?

      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
      • T Offline
        T Offline
        tailor1234
        wrote on last edited by
        #3

        sorry. ;-) i wanna do it with QSslSocket and C++:

        QSslSocket socket
        socket.connectToHostEncrypted(192.168.1.5, 995)

        if (!socket.waitForEncrypted(30000))
        qDebug("Not Encrypted!");

        socket.waitForreadRead(300);
        ....

        and i always got "Not Encrypted!".
        But with a normal openssl connection (openssl s_client -connect 192.168.1.5:995) on the bash its no problem to login to the server. i am beginner and don't which further steps are necessary for such an QSslSocket connection.

        thx.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #4

          If I'm right: first connection to pop3 server is not encrypted! You then should get answer from server where should be some words about possible communication protocols: SSl, TLS etc, you should tel the server which you would like to use and after that you should do handshake and so on.... But it is already long time ago I have played with this protocols...

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tailor
            wrote on last edited by
            #5

            i am still fighting with the POP3 SSL problem, but now i have some little progress and some more infos:

            i can connect to the pop3 server with:
            socket.connectToHostEncrypted(192.168.1.5, 995)

            than i have following state:
            -This system supports OpenSSL.
            -ClientStateChanged(): ConnectedState
            -ClientModeChanged(): SslClientMode

            than i have 2 errors:

            • ssl error: The host name did not match any of the valid hosts for this certificate
            • ssl error: The root certificate of the certificate chain is self-signed, and untrusted

            but when i ignore these errors: socket.ignoreSslErrors(); than i got the encrypted() signal.
            (is this ignoring ok, or should i create a own certificate????)

            when i am waitting for more data from the socket socket.waitForReadyRead(15000) than this function timed out. in the normal way i get this "OK+" from the pop3 server, but here i dont get an answer from the server...

            any ideas whats 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