Fix cert pinning on macOS
This commit is contained in:
parent
d1640e3bb8
commit
8be73142f8
1 changed files with 5 additions and 0 deletions
|
|
@ -423,6 +423,11 @@ NvHTTP::openConnection(QUrl baseUrl,
|
||||||
QList<QSslError> expectedSslErrors;
|
QList<QSslError> expectedSslErrors;
|
||||||
expectedSslErrors.append(QSslError(QSslError::HostNameMismatch, m_ServerCert));
|
expectedSslErrors.append(QSslError(QSslError::HostNameMismatch, m_ServerCert));
|
||||||
expectedSslErrors.append(QSslError(QSslError::SelfSignedCertificate, m_ServerCert));
|
expectedSslErrors.append(QSslError(QSslError::SelfSignedCertificate, m_ServerCert));
|
||||||
|
|
||||||
|
// The SecureTransport backend for Qt TLS on macOS throws CertificateUntrusted
|
||||||
|
// instead of SelfSignedCertificate, so we will need to allow that error too.
|
||||||
|
expectedSslErrors.append(QSslError(QSslError::CertificateUntrusted, m_ServerCert));
|
||||||
|
|
||||||
reply->ignoreSslErrors(expectedSslErrors);
|
reply->ignoreSslErrors(expectedSslErrors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue