Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.3.1
-
None
-
c6e21eb673a7c3e4abcf90bd3bad1ec0890d6b5f
Description
We need to handle additional checks for peer certificates during handshake. We found no way to do it. So we wanted to check it right after the handshake completed.
We tried to connect to encrypted signal of QNetworkReply and of QNetworkAccessManager but every time we try to get the peerCertificate it is NULL.
... connect(m_reply, &QNetworkReply::encrypted, this, &Dummy::encrypted); ... void Dummy::encrypted() { const QSslCertificate peerCert = reply->sslConfiguration().peerCertificate(); if(peerCert.isNull()) { qDebug() << "peer cert is null"; } }
We can get the peerCertificate in readyRead signal but that is too late to abort the connection.
Attachments
For Gerrit Dashboard: QTBUG-40401 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
99904,2 | SSL: Fix sslConfiguration in encrypted slot | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |