'.....importing the necessary namespaces Dim s As TcpListener = New TcpListener(IPAddress.Any, 8081) s.Start() Dim cert As X509Certificate = X509Certificate.CreateFromCertFile("mycert.cer") Dim cs As TcpClient = s.AcceptTcpClient() Dim sStream As New sslStream(cs.GetStream(), False) sStream.AuthenticateAsServer(cert, False, SslProtocols.Tls, True)'this is where i got the error 'read message from client....... 'the rest of the code goes here
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)