Unable to connect to 'https://Domain/sites/location' using SharePoint Web Services due to the following error:
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
Details:
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.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProto
Make sure the site can be opened in Internet Explorer from the machine where you do test connection.
If you get any warnings about SSL certificates, you need to manually accept or install the certificates.