WebSocket客户端错误.net核心与Linux Docker图像与botframework直线

系统信息

SDK语言 :.NET Core 1.1.2

开发环境 :Docker – Linux容器

问题描述

嗨,我用websocket连接到botframework directline频道。 我的客户端使用.net核心构build,并在Linux容器中运行。 我有以下问题:System.Net.WebSockets.WebSocketException:无法连接到远程服务器—> System.Security.Authentication.AuthenticationException:远程证书根据validation过程是无效的。

当它在Windows上运行时,相同的代码效果很好。

谢谢你的帮助 !

代码示例

System.Net.WebSockets.ClientWebSocket客户端=新的System.Net.WebSockets.ClientWebSocket(); 等待client.ConnectAsync(新的Uri(“wss://directline.botframework.com/v3/directline/conversations/XXXX”));

实际结果

System.Net.WebSockets.WebSocketException:无法连接到远程服务器—> System.Security.Authentication.AuthenticationException:根据validation过程,远程证书无效。 System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message,AsyncProtocolRequest asyncRequest)在System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken消息,AsyncProtocolRequest asyncRequest,ExceptionDispatchInfoexception)System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Net.Security.SslState.ProcessReceivedBlob(Byte []缓冲区,Int32计数,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendBlob(Byte []传入,Int32计数,AsyncProtocolRequest asyncRequest)。 SslState.ReadFrameCallback(AsyncProtocolRequest asyncRequest)