Fix self-signed certificate handling (#1649)

This commit is contained in:
LordGrey
2023-10-29 21:13:34 +01:00
committed by GitHub
parent b73e9f4996
commit 27027b224c
4 changed files with 75 additions and 7 deletions

View File

@@ -584,11 +584,7 @@ int LedDevicePhilipsHueBridge::close()
bool LedDevicePhilipsHueBridge::configureSsl()
{
_restApi->setAlternateServerIdentity(_deviceBridgeId);
if (_isDiyHue)
{
_restApi->acceptSelfSignedCertificates(true);
}
_restApi->acceptSelfSignedCertificates(true);
bool success = _restApi->setCaCertificate(API_SSL_CA_CERTIFICATE_RESSOURCE);
if (!success)