Wrap SSL Around Existing Socket... Externally

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

My boss asked me if it is possible to wrap SSL around an existing socket
which is running with a C++ program (I know it is, I have done it before). I
am wondering if it is possible to do this in a C# application so that when
the C# program is running in the background, it is able to intercept the
socket communications from the C++ program, encrypt them, and pass it on
through the C# SSL program I make to a receiving C# program to decode and
pass it back to the C++ client.

Is this possible? I am not even sure what direction to take or what
keywords to lookup for help on this subject. Please let me know if you need
clarification.

Thank you all!

Rob
 
Do you mean encrypt a non-encrypted socket? That would require some sort of
proxy or encrypting NAT on each end (assuming the server excpects an
unencrypted socket).
 
:
Hello Peter,

Thank you for replying!
Do you mean encrypt a non-encrypted socket? That would require some sort of
proxy or encrypting NAT on each end (assuming the server excpects an
unencrypted socket).

Yes, I believe this is correct. Is it possible for a C# program to
intercept these socket communications, then encrypt them before they leave
the local computer? (And then of course capture the communication on the
other end with a C# and unencrypt the data).

Rob
 
Peter Ritchie said:
You'd have to write some sort of NDIS hook (requires WinSock 2).

The only thing I know of is RawEther .NET [1]. It would have to be an
external binary (i.e. the application itself can't hook it's own traffic) as
far as I know...

http://www.rawether.net/DotNet/default.htm

Thank you very much! I will look into this this weekend. Looks like it is
time to roll up the sleeves...

Thanks again for pointing me in the right direction!

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top