Secure TCP with .net 2.0
I am running a .net remoting application and want to secure the tcp traffic between server and clients.
Users connecting to the server should be authenticated and the traffic between server and clients should be encrypted.
To make my problem a little bit more understandable I will post my current approaches.
Servercode:
IDictionary properties = new Hashtable();
properties.Add("port", 8535);
properties.Add("secure", true);
properties.Add("authenticationMode", "IdentifyCallers");
TcpServerChannel channel = new TcpServerChannel(properties, null);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ImportServer),
"ImportServer", WellKnownObjectMode.Singleton);
Clientcode:
properties.Add("secure", true);
properties.Add("connectionTimeout", 5000);
properties.Add("impersonationLevel", "Identify");
properties.Add("useDefaultCredentials", false);
properties.Add("username", "remoting");
properties.Add("password", "xxx");
ChannelServices.RegisterChannel(new TcpClientChannel(properties,null));
con = (ImportInterface)Activator.GetObject(typeof(ImportInterface),
this.connectionStr);
The "remoting" user was created on the server machine. This approach is based on several msdn- and "google"articles, it would be great if anyone could give me some advice about this issue.
Stefan

