I'm currently trying to setup a data collector on premise. http://localhost:11000/ is the website where I can setup data forwarding. When I click the configure forwarding button and configure credentials for data forwarding using AWS region IAM access key ID and secret access key I get error message An error occurred while sending the request. when clicking the browse data collectors button.
In the event log of the server where I have the aws dms collector :
2023-09-25 16:55:16,149 [109] ERROR DMSCollector.Host - 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.ConnectStream.WriteHeadersCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DMSCollector.Collector.WebHost.Dms.DmsApiClient.<PostAsync>d__26.MoveNext() in C:\codebuild\tmp\output\src596660215\src\dot-net-collector\DMSCollector.Collector.WebHost\Dms\DmsApiClient.cs:line 89
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DMSCollector.Collector.WebHost.Service.AccountServiceImpl.<DescribeFleetAdvisorCollectorsByAwsData>d__5.MoveNext() in C:\codebuild\tmp\output\src596660215\src\dot-net-collector\DMSCollector.Collector.WebHost\Service\Impl\AccountServiceImpl.cs:line 151
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DMSCollector.Collector.WebHost.Controller.AccountsController.<>c__DisplayClass9_0.<<DescribeFleetAdvisorCollectorsByAwsData>b__0>d.MoveNext() in C:\codebuild\tmp\output\src596660215\src\dot-net-collector\DMSCollector.Collector.WebHost\Controller\AccountsController.cs:line 85
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DMSCollector.Collector.WebHost.Service.Impl.HttpResponseAspectImpl.<>c__DisplayClass3_0.<<MethodReturnsValueWrapperAsync>b__0>d.MoveNext() in C:\codebuild\tmp\output\src596660215\src\dot-net-collector\DMSCollector.Collector.WebHost\Service\Impl\HttpResponseAspectImpl.cs:line 53
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at DMSCollector.Collector.WebHost.Service.Impl.HttpResponseAspectImpl.<HandleError>d__6.MoveNext() in C:\codebuild\tmp\output\src596660215\src\dot-net-collector\DMSCollector.Collector.WebHost\Service\Impl\HttpResponseAspectImpl.cs:line 87