SharePoint 2013和Workflow Manager的集成出现下面两个问题:
问题1
"Register-SPWorkflowService : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
Register-SPWorkflowService error: The root of the certificate chain is not a trusted root authority
Register-SPWorkflowService : 证书链的根不是受信任的根证书颁发机构。 所在位置 行:1 字符: 2 + Register-SPWorkflowService –SPSite "http://win-office360:30925" –WorkflowH ostUr ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ + CategoryInfo : InvalidData: (Microsoft.Share...WorkflowService: RegisterSPWorkflowService) [Register-SPWorkflowService],ConfigurationExcep tion + FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell .RegisterSPWorkflowService
问题2
register-spworkflowservice : The underlying connection was closed: An unexpected error occurred on a send. Client ActivityId: e218b8a2-0655-4d09-8f4d-5cbc09f3ddf7.
Register-SPWorkflowService : 基础连接已经关闭: 发送时发生错误。 客户端 Activity Id: 69fafe1b-232b-4b11-b97a-6726dd8d5cbb。 所在位置 行:1 字符: 1 + Register-SPWorkflowService –SPSite "http://win-2ihjdgn8ohl:6080" –WorkflowH ostUr ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ + CategoryInfo : InvalidData: (Microsoft.Share...WorkflowService: RegisterSPWorkflowService) [Register-SPWorkflowService],WorkflowCommunicat ionException + FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell .RegisterSPWorkflowService
问题1解决方法:因为SSL证书不正确。把命令
Register-SPWorkflowService –SPSite "http://luozhuang/yourSite" –WorkflowHostUri "https://luozhuang:12290" –AllowOAuthHttp
改为:
Register-SPWorkflowService –SPSite "http://luozhuang/yourSite" –WorkflowHostUri "http://luozhuang:12291" –AllowOAuthHttp
就是workflow地址改为HTTP的
但是出现问题2
问题2产生原因在于虽然MS为Workflow Manager设置了绑定 http端口12291,但是IIS上面却根本没有设置(搞不懂为什么,用Workflow Manager PowerShell查看Get-WFFarm 显示http端口12291),解决方法就是去IIS找到Workflow Manager这个应用程序,然后在绑定 设定 http端口12291(原来只绑定https为12290)
重新运行命令,问题解决