[Interest] Qt ssh root ca bundle

ynon perek ynonperek at gmail.com
Tue Apr 17 07:52:18 CEST 2012


Hi All,
I'm trying to get QtWebkit to work nicely with ssh. It usually does so
out-of-the-box but the problem is for some machines it does not.

On the problematic machines, an SSL error signal is sent.
If I print the errors to a log file I get the error code: QSslError::NoError

I suspect it had something to do with old certificate files on the
machines, so I tried bunding my own root ca (which works well in
curl/wget). Here's the code I use to tell Qt to use my root CAs:

    QString capath = LicenseUtils::adjustPath(":/ca-bundle.crt");
    if ( QFile::exists(capath) )
    {
        QList<QSslCertificate> cacerts = QSslCertificate::fromPath(capath);
        QSslSocket::setDefaultCaCertificates(cacerts);

        QLOG_INFO() << "[Main] Using certs bundle";
    }

Unfortunately, this still doesn't work.

Any ideas how to find out what's wrong and/or fix it ?

Thanks In Advance,
  Ynon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120417/8f762849/attachment.html>


More information about the Interest mailing list