Hi
I've created a Tcp Server that uses the SslStream for communication. It works fine when I run the application as a console application but stalls when I call AthenticateAsServer() on the SslStream:
Heres my code:
TcpClient client;
SslStream networkStream = new SslStream(client.GetStream(), false);
X509Certificate serverCertificate = new X509Certificate(@"C:\program files\Test.pfx", "password");
networkStream.AuthenticateAsServer(serverCertifica te, true, SslProtocols.Tls, true); //Just Hangs Here
Does anybody have any ideas as to why this would happen when it runs as a windows service? The service has LocalSystem privileges.
Cheers
F