System.Net.WebSockets.Client.Managed icon indicating copy to clipboard operation
System.Net.WebSockets.Client.Managed copied to clipboard

unable to ignore certificate check

Open hong-heng opened this issue 7 years ago • 1 comments

I am in the development of creating a client app to connect to web socket server in windows 7 environment both ws and wss, and I'd like to ignore the certificate check during development.

following code works, with System.Net.WebSockets.ClientWebSocket System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

however when using System.Net.WebSockets.Manage.ClientWebSocket, its doesn't work and couldn't connect to websocket server.

Any extra configuration has to be done in this managed version?

hong-heng avatar May 26 '18 10:05 hong-heng

is there any solution for the above issue?

DAshok7814 avatar Jul 08 '22 11:07 DAshok7814