kremuwa
18th July 2010, 15:23
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:
sock.connectToHostEncrypted(host,port);
if(!sock.waitForEncrypted(TIMEOUT))
{
report(sock.errorString()); //it's using qDebug() and sending the communicate I quoted above
return false;
}
"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:
sock.connectToHostEncrypted(host,port);
if(!sock.waitForEncrypted(TIMEOUT))
{
report(sock.errorString()); //it's using qDebug() and sending the communicate I quoted above
return false;
}