No,I mean how you found out that there is a bug!
The strange thing is: I connect to gammel.de using setHost("gammel.de", true);
and there I try to get the method "j_security_check" n the same subfolder.,
As soon as I do thos I receive the sslError Signal. Telling me that I do not have ca cert and so on!
But when I do this local this doesnt work! I just receive readyRead and the message is Fault!
May I see your code?
What do you think the the error comes from?
ow/where when do you submit your Sslconfiguraion?
QSslConfiguration sslConfiguration = request->sslConfiguration();
sslConfiguration.setLocalCertificate(cert);
file.close();
QString passphrase
= "antivir_default";
QSslKey key(&file, QSsl::Rsa, QSsl::Pem,QSsl::PrivateKey , passphrase.toAscii());
sslConfiguration.setCaCertificates(QList<QSslCertificate>() << cert);
sslConfiguration.setPrivateKey(key);
sslConfiguration.setProtocol(QSsl::TlsV1);
sslConfiguration.setPeerVerifyMode(QSslSocket::QueryPeer);
QSslConfiguration sslConfiguration = request->sslConfiguration();
sslConfiguration.setLocalCertificate(cert);
file.close();
QString passphrase = "antivir_default";
file.open(QIODevice::ReadOnly);
QSslKey key(&file, QSsl::Rsa, QSsl::Pem,QSsl::PrivateKey , passphrase.toAscii());
sslConfiguration.setCaCertificates(QList<QSslCertificate>() << cert);
sslConfiguration.setPrivateKey(key);
sslConfiguration.setProtocol(QSsl::TlsV1);
sslConfiguration.setPeerVerifyMode(QSslSocket::QueryPeer);
To copy to clipboard, switch view to plain text mode
Where request is QNetworkReply *request = http.networkReply(); // this fails....ok its a NULL ptr. when is it initialied? Or better what to use to set the cert?
and http is QtSoapHttpTransport http;
So I thought with request->setSslConfiguration(sslConfiguration);
this would be used for next request but doesnt!
Bookmarks