System.Exception: RemoteCertificateChainErrors

Hello

Can anyone comment on why I’m getting this error?

CALLING SERVICES VIA WEBSOCKET
[+0] ERROR: System.Exception: RemoteCertificateChainErrors
WebsocketClient_Closed
[+23] ERROR: System.Security.Authentication.AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback.
at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte reAuthenticationData, Boolean isApm)
at SuperSocket.ClientEngine.SslStreamTcpSession.AuthenticateAsClientAsync(SslStream sslStream, SecurityOption securityOption)

Can you share the URL you’re trying to access?

Hi Alex,

Thanks for the reply, but I got it to work. I had to use the URI for websocket. It was set to using https instead of wss.

Thanks