4
Vote

AllowUnstrustedCertificate property do not work in 0.14

description

After upgdaring to version 0.14 I can't connect to wss:// self signed service. Despite on
webSock.AllowUnstrustedCertificate = true;
I catch two errors in Error delegate. First
"{System.Exception: RemoteCertificateNameMismatch, RemoteCertificateChainErrors}" 
with no stack trace and then
"{SuperSocket.ClientEngine.ErrorEventArgs}
with following stack trace:
   in System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
   in SuperSocket.ClientEngine.SslStreamTcpSession.OnAuthenticated(IAsyncResult result)"

comments

vraikov wrote Aug 11, 2016 at 6:58 AM

I can confirm this doesn't work in v0.11 either. Having set the property it throws this error with some certificates

System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
at SuperSocket.ClientEngine.SslStreamTcpSession.OnAuthenticated(IAsyncResult result)