When trying to publish SharePoint 2013 workflow facing "Errors were found when compiling the workflow"

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[TAs

How to fix this? Thanks in advance!

1 Answer 1


The solution is to use a domain certificate instead of self-signed certificate. To do that we need to ensure “Active Directory Certificate Services” role is deployed in one server within the domain.

If “Active Directory Certificate Services” is available we can use following steps to request a domain certificate

1) In App Server go to Microsoft Management Console and add snap-in for Certificates enter image description here

2)Select computer account enter image description here

enter image description here

3) Navigate to Personal > Certificates enter image description here

4) Click Request new certificate enter image description here

5) Use this certificate for workflow manager configuration

Source: Could not establish trust relationship for the SSL/TLS secure channel–multi server environment with self-signed certificate for SharePoint 2013 workflow manager


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.