What could be the possible reasons for the following error. Please guide
Exception Type: AuthenticationException
CouchbaseLiteException (NetworkDomain / 8): One or more errors occurred. (The remote certificate is invalid according to the validation procedure.)
This happens only when we try to connect to sync gateway from a TFS build agent machine to run the automation tests.
The code snippet given below.
var dbUrl = new Uri(SyncUrl, DbName);
var config = new ReplicatorConfiguration(DcfrDatabase.Instance, new URLEndpoint(dbUrl)) { ReplicatorType = ReplicatorType.PushAndPull, Continuous = true, Authenticator = new SessionAuthenticator(sessionId) }; repl = new Replicator(config);