mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 00:06:09 +00:00
Fix cert pinning on macOS
This commit is contained in:
parent
d1640e3bb8
commit
8be73142f8
@ -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…
x
Reference in New Issue
Block a user