Solved

https remoting

Posted on 2004-08-05
10
352 Views
Last Modified: 2012-05-05
Hi,

I have a remoting application which uses a binary formatter over tcp, this isn't hosted within IIS, but within my own application server.

I am releasing the application to a client who want to connect over the web.

I'm a little concerned about security, i.e. can someone hack the application by using the open port ?? or is there some kind of handshaking between legitimate clients trying to connect.

Ideally, I'd like to encrypt the data being sent. We have an SSL certificate, is there any way this can be used to encrypt the data.

I've done some web-searches, but can only find info on using SSL when hosted within IIS, which isn't an option.

Thanks
Smg.
0
Comment
Question by:smegghead
  • 5
  • 2
10 Comments
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11730461
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11730470
smegghead: please email me per other question ... I forget to put my pants on in the morning sometimes when I go to work :)
0
 
LVL 10

Author Comment

by:smegghead
ID: 11730486
I did email you, tried three different addresses (tried to work them out from your profile).. got two bounce backs, so assumed the 3rd worked.

Mine is on my profile also, so you might be better emailing me !! :-)

Chrs
Smg.
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11730501
gregoryyoung@ee
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11730515
0
 
LVL 4

Expert Comment

by:Eran_R
ID: 11730728
The .NET remoting framework provides a lot of extensibility options.

Almost all extensions to the .NET remoting involve implementating IMessageSink.
.NET remoted calls go through the following chain:

[Client side]
call -> TransparentProxy -> RealProxy -> EnvoySinkChain -> ClientContextSinkChain -> ClientChannelSinkChain

<transport>

[Server side]
ServerChannelSinkChain -> ServerContextSinkChain -> ServerObjectSinkChain -> StackBuilderSink -> method call

You can choose to implement some sort of encryption on one of these sink chains, for example, client and server channel sinks (symmetric).

I must say that implementing such stuff requires a good understanding of .NET remoting infrastructure.
The following books are pretty good, and contain some examples of customized sinks:

"Microsoft .NET Remoting" - Microsoft Press - ISBN:0735617783
"Advanced .NET Remoting (C# Edition)" - Apress - ISBN:1590590252 (Contains encryption example)

Since you need some special action performed on both server side and client side, proxies are not the solution. You need to use message sinks to acheive what you want.

The website www.idesign.net also contains some resources and sample code for .NET remoting specialization (go to the Downloads section)

Hope this helps
0
 
LVL 4

Expert Comment

by:Eran_R
ID: 11750146
I stumbled upon an article on MSDN that answers your needs exactly!

here's the link:
Part I - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/remsspi.asp
Part II - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/remsec.asp (What you need)

Part II contains an example of using custom channel sinks to add security to .NET remoting
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11750212
Eran_R please read my last post...

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now