We have a secure Discovery service using https and are using Tridion Sites 9. Accessing it from the browser works but when accessing it from the TopologyManager Add-TtmCdEnvironment
, we get the following error.
Could not create SSL/TLS secure channel. The request was aborted: Could not create SSL/TLS secure channel.
We have not yet followed the instructions for Securing the microservice with SSL. I assume this would solve it. But, why would the request to the MicroServices work in the Browser but not via the PowerShell command?
StackTrace:
Log Name: Tridion Source: Tridion TopologyManager Date:
3/19/2019 2:24:30 PM Event ID: 100 Task Category: None Level:
Error Keywords: Classic User: N/A Computer:
CPU_NAME Description: Unable to save item of type 'CdEnvironmentData' with id 'DevStaging'. One or more errors occurred. An error occurred while communicating with CD Discovery Service 'https://tridion-dev.net:8082/discovery.svc' in CD Environment 'DevStaging'. The request was aborted: Could not create SSL/TLS secure channel. The request was aborted: Could not create SSL/TLS secure channel.Component: Tridion.TopologyManager.Service Errorcode: 12 User: NT AUTHORITY\NETWORK SERVICE
StackTrace Information Details: at System.Net.HttpWebRequest.GetResponse() at Microsoft.OData.Client.HttpWebRequestMessage.GetResponse() at Microsoft.OData.Client.HttpWebRequestMessage.GetResponse() at Microsoft.OData.Client.DataServiceContext.GetResponseHelper(ODataRequestMessageWrapper request, IAsyncResult asyncResult, Boolean handleWebException) at Microsoft.OData.Client.QueryResult.ExecuteQuery() at Microsoft.OData.Client.DataServiceRequest.Execute[TElement](DataServiceContext context, QueryComponents queryComponents) at Microsoft.OData.Client.DataServiceQuery
1.GetEnumerator() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source)
at Microsoft.OData.Client.DataServiceQueryProvider.ReturnSingleton[TElement](Expression expression) at Tridion.TopologyManager.Connectors.CdDiscoveryServiceClient.ExecuteRequestWithRetry(Action action, String cdEnvironmentId) at System.Threading.Tasks.Task.Execute() --- 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 Tridion.TopologyManager.Connectors.CdDiscoveryServiceClient.d__0.MoveNext() at Tridion.TopologyManager.Connectors.CdDiscoveryServiceClient.d__0.MoveNext() --- 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 Tridion.TopologyManager.Connectors.CdConnector.d__11.MoveNext() at System.Threading.Tasks.Task.WaitAll(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at Tridion.TopologyManager.Connectors.CdConnector.OnCreated(TopologyItemData item, TtmOperationContext context) at Tridion.TopologyManager.Connectors.CdConnector.OnCreated(TopologyItemData item, TtmOperationContext context) at Tridion.TopologyManager.CrossSystemBusinessLogicRegistry.OnCreated(TopologyItemData item, TtmOperationContext context) at Tridion.TopologyManager.TopologyItem1.Create(T item, TtmOperationContext context) at Tridion.TopologyManager.Service.Controllers.TopologyItemController
1.Create(T entity) at Tridion.TopologyManager.Service.Controllers.TopologyItemController1.Post(T entity) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.<GetExecutor>b__3(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary
2 arguments, CancellationToken cancellationToken) --- 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 System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext() --- 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 System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext() --- 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 System.Web.Http.Filters.AuthorizationFilterAttribute.d__3.MoveNext() --- 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 System.Web.Http.Controllers.ExceptionFilterResult.d__6.MoveNext()