MacOS & SSL



  • Hello,

    Can anyone help me with my issue? I'm trying to get html page via https protocol, but always got error "SSL handshake failed".
    I've connected SIGNAL sslErrors with SLOT and add printing debug but this SLOT don't get in.
    Same code works fine under Windows and Linux. Qt version is 4.8.1 & 4.8.2.
    I don't got message "got ssl error "
    @@void Main::req() {
    manager = new QNetworkAccessManager(this);
    QNetworkRequest request;
    request.setUrl("https://mypage.com");
    request.setSslConfiguration(QSslConfiguration::defaultConfiguration ());
    connect(manager, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)), this, SLOT(sslErrorHandler(QNetworkReply*, const QList<QSslError> & )));
    connect(manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(gotPage(QNetworkReply*)));
    manager->get(request);
    }

    void Main::sslErrorHandler(QNetworkReply* qnr, const QList<QSslError> & errlist) {
    qDebug() << "got ssl errors";
    qnr->ignoreSslErrors();
    }
    @@

    [edit, code tags added, koahnig]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.