statianzo / Fleck

C# Websocket Implementation
MIT License
2.25k stars 583 forks source link

使用wss报错(there is a error by using wss) #295

Open starnc opened 4 years ago

starnc commented 4 years ago

[Warn] Failed to Authenticate System.AggregateException: 发生一个或多个错误。 ---> System.IO.IOException: 由于意外的数据包格式,握手失败。 在 System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult) 在 System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result) 在 System.Net.Security.SslStream.EndAuthenticateAsServer(IAsyncResult asyncResult) 在 System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- 内部异常堆栈跟踪的结尾 --- ---> (内部异常 #0) System.IO.IOException: 由于意外的数据包格式,握手失败。 在 System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult) 在 System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result) 在 System.Net.Security.SslStream.EndAuthenticateAsServer(IAsyncResult asyncResult) 在 System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)<---

this is my error by running time

我确定我的证书是正确的,是从阿里云下载的,并且wss工作正常,但是会报这个运行时错误,为什么?用ws协议的时候没有这种错误 I‘m sure my pfx file is right, and i can connect my wss websocket , and i can send my message, but in the console,there is this waring information , why ?