In this article, we are going to explain and fix the issue related to SharePoint 2016 and Workflow Manager 1.1 CU2. In fresh SharePoint 2016 RTM Farm with Workflow Manager 1.1 installed, when we try to publish SharePoint 2013 Designer Workflow, we get the error, as shown below. “The remote certificate is invalid according to the validation procedure” in ULS logs as well as in the UI.
- 01/18/2016 16:25:17.53 w3wp.exe (kfsp:0x3764) 0x5758 SharePoint
- Server Workflow Services ahwae Medium Error publishing workflow
- definition (ItemUpdating) information: 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
- Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
- at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult
- result) at
- Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T
- content) at
- Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest
- request, T content) at
- Microsoft.Workflow.Client.ScopeManager.PublishScopeInternal(ScopeDescription
- description, String[] pathSegments) at
- Microsoft.Workflow.Client.ScopeManager.PublishChildScope(String childScopeName,
- ScopeDescription description) at
- Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.CreateServiceGroup(String
- scopeAddress, ScopeDescription serviceGroup) at
- Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.CreateOrUpdateServiceGroup(SPWeb
- lookupWeb, SPAppPrincipal app) at
- Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.<SetupApplicationEcosystem>b__3()
- at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated
- secureCode) at
- Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback
- secureCode, Object param) at
- Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated
- secureCode) at
- Microsoft.SharePoint.WorkflowServices.SPWebWorkflowSecurityContext.SetupApplicationEcosystem()
- at
- Microsoft.SharePoint.WorkflowServices.FabricWorkflowDeploymentProvider.PublishDefinition(WorkflowDefinition
- workflowDefinition) at
- Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionStorageEventReceiver.PublishDefinition(SPItemEventProperties
- properties)

Anil PaudelPosted Nov 20, 2020, 12:30 AM
Hi, this is not working while accessing external content type.
Madhanmohan DevarajanPosted Mar 17, 2017, 2:11 PM
Seems like simple fix for complex issue. Thanks for Sharing it!