sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.74k stars 1.66k forks source link

TLS 1.3 bug at connection client side #737

Open LordKBX opened 1 year ago

LordKBX commented 1 year ago

In accordance with the title given, i have problems when i try to connect the client part on a websocket service accepting only Tls1.3 For information the server part is made with websocket-sharp has well but is fully usable with a web browser.

the following errors appears

'System.Security.Authentication.AuthenticationException' in System.Private.CoreLib.dll
'WebSocketSharp.WebSocketException' in websocket-sharp.dll
An exception has occurred while connecting.
LordKBX commented 1 year ago

For information i use a compiled version in .net 6.0 from a clone of the repository of due date 2023-09-26 Use a self signed cert created with Pluralsight.Crypto also recompiled in .Net 6.0

njsunsky commented 1 year ago

I get the same error,use winform client wss connect is ok ,but in web ,js client wss connect is error

LordKBX commented 1 year ago

In the web browser for a successful activation you need to directly go to the address and valid the certificate