johnpapa

johnpapa

  • NA
  • 2
  • 0

Simple remoting app and security

Jul 13 2004 9:54 PM
Hello all! I have writen a utility that manipulates assemblies. The server side is supposed to be a library depository and the client side a GAC manipulator that can download assemblies from the server library and deploy then on the GAC. The main point is that the assembly is trasnfered as a a byte Array, a field in a serializable object. I used the simple tutorial remoting found on this site to build this. It works, but I was wondering if I could make it secure. I'm only really interested in simple stuff as I can't spent much time on it. So, could someone tell me where I can find how to implement encryption on the http channel, using private key cryptography and assuming that the common key had been distributed. Also, do you think there would be problems with downloading on slow lines due to object lifetimes? If so, how can I avoid this? I've been using .NET for just 10 days now. This program is my fisrt on the platform. These may be simple problems, but any help will be greately appreciated. Thanx in advance! yiannos Just in case the code will help you to help me: client: ChannelServices.RegisterChannel(new HttpClientChannel()); loader = (Loader)Activator.GetObject(typeof(Loader), "http://"+ipAddress+":9932/Loader"); AssemblyData ret = loader.GetData(Name,Version); //getting serializable object byte[] datd = ret.GetData() //getting byte array server (typical): channel= new HttpServerChannel(9932); ChannelServices.RegisterChannel(channel); RemotingConfiguration.RegisterWellKnownServiceType( typeof(Loader), "Loader", WellKnownObjectMode.SingleCall ); The loader is part of a simple common library.