Unable to connect Skyline to UNIFI

support
Unable to connect Skyline to UNIFI bkraft  2025-06-19 08:59
 

I have been troubleshooting the Skyline connection our UNIFI system, but have not been able to get it to work. The UNIFI API is working as we have Protein Metrics Byos working without issue. When I attempt to connect from Skyline, I get the following error, which indicates a certificate issue (even though the certificate is installed and not expired):
System.Reflection.TargetInvocationException: There was an error communicating with the server: One or more errors occurred. ---> pwiz.Skyline.Model.Results.RemoteApi.RemoteServerException: There was an error communicating with the server: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> 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.

The connection works if Skyline is installed on the UNIFI computer and we use "localhost" but using the IP address or Hostname results in failed connection. Multiple computers running Skyline cannot make the connection. What certificate am I looking for and what configuration is wrong? Waters support has not been able to identify the issue at this time.

 
 
Matt Chambers responded:  2025-06-20 11:55

Searching about the error "Could not establish trust relationship for the SSL/TLS secure channel" it almost certainly seems certificate related, so I'm guessing we're using some more rigid .NET functions for accessing HTTPS when it comes to certificate validation. Are you using a self-signed certificate on the server?

 
bkraft responded:  2025-06-23 08:11

This is using a self-signed certificate. Unfortunately, I am not well versed with the Windows certificate system, so am not sure where to look for the issue. The certificate has been added to the computer that is trying to access the UNIFI data, but that is still not allowing the connection.