I am using HomeSeer software with Philips Hue plugin.
That plugin is using Q42.HueApi.dll (net45).
Unfortunately registering the Bridge Pro with the Philips Hue plugin fails on the verification of the self-signed certificate from the bridge Pro.
System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)
at System.Net.PooledStream.EndWrite(IAsyncResult asyncResult)
at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) --- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) --- End of inner exception stack trace ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Q42.HueApi.LocalHueClient.d__2.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Q42.HueApi.LocalHueClient.d__1.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Q42.HueApi.LocalHueClient.d__0.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at HSPI_PhilipsHue.BridgeController.<>c__DisplayClass38_0.d.MoveNext() --- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at HSPI_PhilipsHue.BridgeController.RegisterNewBridge(LocatedBridge locatedBridge)
at HSPI_PhilipsHue.AddBridgePage.PostBackProc(String data, String user, Int32 userRights)
at HSPI_PhilipsHue.Controller.PostBackProc(String page, String data, String user, Int32 userRights)
I already managed to upgrade the dll from version 3.15.4 (included with the Hue plugin) to 3.23.2 but that didn't fix it.
Adding the certificate as Trusted Root or Intermediate didn't help either.
At the Homeseer end I do not see much interest to fix this.
Therefor: is it possible to create a new Q42.HueApi.dll (net45) with a fix for the certificate validation? Just ignoring it would already be good enough:
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
See: https://stackoverflow.com/questions/12506575/how-to-ignore-the-certificate-check-when-ssl
I am using HomeSeer software with Philips Hue plugin.
That plugin is using Q42.HueApi.dll (net45).
Unfortunately registering the Bridge Pro with the Philips Hue plugin fails on the verification of the self-signed certificate from the bridge Pro.
I already managed to upgrade the dll from version 3.15.4 (included with the Hue plugin) to 3.23.2 but that didn't fix it.
Adding the certificate as Trusted Root or Intermediate didn't help either.
At the Homeseer end I do not see much interest to fix this.
Therefor: is it possible to create a new Q42.HueApi.dll (net45) with a fix for the certificate validation? Just ignoring it would already be good enough:
See: https://stackoverflow.com/questions/12506575/how-to-ignore-the-certificate-check-when-ssl