Supersockect + TLS + win xp

Jun 4, 2014 at 7:24 AM

I am trying to use supersocket with a secure configuration. I have a self certificate. I add this certificate to my local store x509 of windows. This certificate is for localhost domain.

This works fine for windows 7 and windows 8. However, in windows xp i cant conect.

My code is
Dim appServer = New SuperSocket.WebSocket.WebSocketServer()

            Dim r As New SuperSocket.SocketBase.Config.RootConfig()

            Dim s As New SuperSocket.SocketBase.Config.ServerConfig()
            s.Name = "SuperWebSocket"
            's.ServiceName = "SuperWebSocket"
            s.Ip = "Any"
            s.Port = 35688
            s.Mode = SuperSocket.SocketBase.SocketMode.Tcp

            s.Security = "tls"

            Dim cert As New SuperSocket.SocketBase.Config.CertificateConfig()

            cert.FilePath = Application.StartupPath & "\cert.pfx"
            cert.StoreLocation = StoreLocation.LocalMachine
            cert.Password = ""
            'cert.IsEnabled = True

            s.Certificate = cert

            Dim f As New SuperSocket.SocketEngine.SocketServerFactory()

            If Not appServer.Setup(r, s, f) Then ..
Any ideas, why it dosent work in windows xp? No secure protocol work fine in win xp, but i need secure because my webpage use https.

Thanks, and apologise for my english.
Jun 4, 2014 at 8:18 AM
Did you find any error log about the certificate?
Jun 4, 2014 at 10:35 AM

System.Security.Authentication.AuthenticationException: No se pudo realizar una llamada a SSPI; consulte la excepción interna. ---> System.ComponentModel.Win32Exception: No es posible la conexión con la autoridad de seguridad local
   --- Fin del seguimiento de la pila de la excepción interna ---
   en System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
   en System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
   en System.Net.Security.SslStream.EndAuthenticateAsServer(IAsyncResult asyncResult)
   en SuperSocket.SocketEngine.AsyncStreamSocketSession.OnBeginInitStream(IAsyncResult result, Boolean connect)
Jun 8, 2014 at 11:53 AM
Could you translate it to English?
Jun 11, 2014 at 5:16 PM
Edited Jun 11, 2014 at 5:20 PM
It's means something like :

" it can´t complet a call to SSPI; Look the internal exception: Win32Exception: It's imposible the conection with the local security authority. "

With the certificate find in sample of supersokect, it works fine in win xp. I dont know if i use 2048 bits for key o anything else...

Anyway, i find out that windows removes self signed certificate from the root authority store. At least, this certificate signed for localhost domain. So i can't use tls in my websockect.