mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-28 14:00:28 +00:00
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;
|
||||
expectedSslErrors.append(QSslError(QSslError::HostNameMismatch, 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue