Since I just need to connect to the POP3 servers which support only SSL and I don't need all of the SSL security, after creating an QSslSocket class object, I'm calling ignoreSslErrors() function. However, when I'm connecting for example to: mail.inbox.lv on port 995, I'm receiving such an error string:
"The root certificate of the certificate chain is self-signed, and untrusted"
Why does the program not ignore that error? Do you have any ideas?
Here's a piece of code responsible for this:
Qt Code:
  1. sock.connectToHostEncrypted(host,port);
  2. if(!sock.waitForEncrypted(TIMEOUT))
  3. {
  4. report(sock.errorString()); //it's using qDebug() and sending the communicate I quoted above
  5. return false;
  6. }
To copy to clipboard, switch view to plain text mode