Ignore self signed ssl certs for connections to localhost

This commit is contained in:
Michael Zanetti 2019-05-22 13:58:27 +02:00
parent 203e444073
commit 63e5f90632
2 changed files with 5 additions and 2 deletions

View File

@ -177,8 +177,12 @@ void NymeaConnection::onSslErrors(const QList<QSslError> &errors)
certificateFingerprint.append(digest.mid(i,1).toHex().toUpper());
}
// Ignore self signed certs for connections to localhost
if (QHostAddress(transport->url().host()) == QHostAddress::LocalHost || QHostAddress(transport->url().host()) == QHostAddress::LocalHostIPv6) {
ignoredErrors.append(error);
// Check old style fingerprint storage
if (storedFingerPrint == certificateFingerprint) {
} else if (storedFingerPrint == certificateFingerprint) {
qDebug() << "This fingerprint is known to us.";
ignoredErrors.append(error);

View File

@ -168,7 +168,6 @@ Page {
ColorIcon {
height: app.iconSize / 2
width: height
visible: infoPane.connectedState !== null && infoPane.connectedState.value === false
color: "white"
name: "../images/system-update.svg"
RotationAnimation on rotation { from: 0; to: 360; duration: 2000; loops: Animation.Infinite; running: engine.systemController.updateRunning }