473,554 Members | 3,120 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Securing socket communications

Hi all.
How can i secure socket communications?
Is it possible to use ssl?
Thanks,
Sharon.
Jan 22 '06 #1
8 6345
Hello Sharon,

AFIK SSL is limited to HTTP communication, although on an infrastructure
level you could look at IPSec.

--
Patrik Löwendahl [C# MVP]
http://www.lowendahl.net
Hi all.
How can i secure socket communications?
Is it possible to use ssl?
Thanks,
Sharon.

Jan 22 '06 #2
If you are using .NET Remoting you could use an HTTP Channel and benefit
from the IIS security. You will get "out of the box" security, the
drawbacks are that you will need to istall IIS and host the remote
objects in ASP.NET of course the there is always a drawback: performance.
Here is an article about .net remoting security:
http://msdn.microsoft.com/library/de...SecNetch11.asp
--
Regards,
David Hernández Díez
MCDBA MCSD vs6 & .NET
DCE5 .Net1.1 & DCE2 .NET 2.0

Sharon wrote:
Hi all.
How can i secure socket communications?
Is it possible to use ssl?
Thanks,
Sharon.

Jan 22 '06 #3
Thanks for your reply David.
This means that with every installation of my server, i will have to install
IIS,
and possibly a certificate.
I guess i can use IIS only in the login phase, and send back a secret key,
which
will be used to encrypt further socket communications.
But i will use this option only as a last resort.
Regards,
Sharon.
"David Hernandez Diez" <dh****@newsgro ups.nospam> wrote in message
news:ur******** ******@TK2MSFTN GP11.phx.gbl...
If you are using .NET Remoting you could use an HTTP Channel and benefit
from the IIS security. You will get "out of the box" security, the
drawbacks are that you will need to istall IIS and host the remote objects
in ASP.NET of course the there is always a drawback: performance.
Here is an article about .net remoting security:
http://msdn.microsoft.com/library/de...SecNetch11.asp
--
Regards,
David Hernández Díez
MCDBA MCSD vs6 & .NET
DCE5 .Net1.1 & DCE2 .NET 2.0

Sharon wrote:
Hi all.
How can i secure socket communications?
Is it possible to use ssl?
Thanks,
Sharon.

Jan 22 '06 #4
Patrik Löwendahl [C# MVP] wrote:
Hello Sharon,

AFIK SSL is limited to HTTP communication, although on an infrastructure
level you could look at IPSec.


SSL is not limited to HTTP communication, it can be used with anything
that runs over TCP.

The OpenSSL page links to a page where openssl binaries for windows can
be downloaded: http://www.openssl.org/related/binaries.html
I can't find any official OpenSSL libs for .NET. I guess it should be
easy to write a .NET wrapper around that though. Someone on codeproject
seems to have done that already:
http://www.codeproject.com/managedcpp/sslclasses.asp

Strange that there aren't any official/trustworthy .NET wrappers for
openssl yet.

hth,
Max
Jan 22 '06 #5
It should be noted that in .NET 2.0, you can use the SslStream class to
perform SSL communications.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Markus Stoeger" <sp******@gmx.a t> wrote in message
news:uc******** ******@TK2MSFTN GP12.phx.gbl...
Patrik Löwendahl [C# MVP] wrote:
Hello Sharon,

AFIK SSL is limited to HTTP communication, although on an infrastructure
level you could look at IPSec.


SSL is not limited to HTTP communication, it can be used with anything
that runs over TCP.

The OpenSSL page links to a page where openssl binaries for windows can be
downloaded: http://www.openssl.org/related/binaries.html
I can't find any official OpenSSL libs for .NET. I guess it should be easy
to write a .NET wrapper around that though. Someone on codeproject seems
to have done that already:
http://www.codeproject.com/managedcpp/sslclasses.asp

Strange that there aren't any official/trustworthy .NET wrappers for
openssl yet.

hth,
Max

Jan 22 '06 #6
This won't work, since you can not decouple a good deal of the
infrastructure of ASP/ASP.NET from IIS.

In .NET 2.0, you should take a look at the SslStream class, as it will
do what you are looking for.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Sharon" <no*****@null.v oid> wrote in message
news:uJ******** ******@TK2MSFTN GP15.phx.gbl...
Thanks for your reply David.
This means that with every installation of my server, i will have to
install IIS,
and possibly a certificate.
I guess i can use IIS only in the login phase, and send back a secret key,
which
will be used to encrypt further socket communications.
But i will use this option only as a last resort.
Regards,
Sharon.
"David Hernandez Diez" <dh****@newsgro ups.nospam> wrote in message
news:ur******** ******@TK2MSFTN GP11.phx.gbl...
If you are using .NET Remoting you could use an HTTP Channel and benefit
from the IIS security. You will get "out of the box" security, the
drawbacks are that you will need to istall IIS and host the remote
objects in ASP.NET of course the there is always a drawback: performance.
Here is an article about .net remoting security:
http://msdn.microsoft.com/library/de...SecNetch11.asp
--
Regards,
David Hernández Díez
MCDBA MCSD vs6 & .NET
DCE5 .Net1.1 & DCE2 .NET 2.0

Sharon wrote:
Hi all.
How can i secure socket communications?
Is it possible to use ssl?
Thanks,
Sharon.


Jan 22 '06 #7
Nicholas Paldino [.NET/C# MVP] wrote:
This won't work, since you can not decouple a good deal of the
infrastructure of ASP/ASP.NET from IIS.

In .NET 2.0, you should take a look at the SslStream class, as it will
do what you are looking for.

Hope this helps.

I'm not sure about all of ASP.NET, but Web Services can be hosted
outside of IIS using pure .NET.

http://msdn.microsoft.com/msdnmag/is...erviceStation/

Coupled with SslStream, you may be able to run your own https:// web
service.
--
Jay R. Wren
Jan 23 '06 #8
Hosting a web service could work.
I'm also looking into HttpListener class.
Thanks.

"Jay R. Wren" <jr****@gmail.c om> wrote in message
news:uh******** *****@TK2MSFTNG P12.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
This won't work, since you can not decouple a good deal of the
infrastructure of ASP/ASP.NET from IIS.

In .NET 2.0, you should take a look at the SslStream class, as it
will
do what you are looking for.

Hope this helps.

I'm not sure about all of ASP.NET, but Web Services can be hosted
outside of IIS using pure .NET.

http://msdn.microsoft.com/msdnmag/is...erviceStation/

Coupled with SslStream, you may be able to run your own https:// web
service.
--
Jay R. Wren

Jan 24 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3548
by: User | last post by:
Hi, I tried to find the information over the internet but didn't find any answers. I'm looking for a server side code example of winsock accepting many clients. I know that in VB.NET it is not implemented like in VB6. What I've done is one client per socket. Meaning that each client used a different port on the server, but I find it...
1
2415
by: Techsol | last post by:
Hi, I have synchronous communications between a server and client. To save bandwith the connection must persist. So the socket must stay open and only be re-opened in case of communications failure. To simulate failure, the server disconnects the socket. However, the client socket parameter shows an open socket: socket.connected is true, socket....
1
1363
by: batista | last post by:
Hi, My problem is that i have a client which was, uptil now, running inside a lan and using sokcet communication to connect to server which is also insdie the same lan.....(it was all working fine) Now, i want this client app to be able to connect to my server from outside the lan as well... Like i would like to give my user the...
14
25245
by: DaTurk | last post by:
I am makeing a Multicast server client setup and was wondering what the difference is between Socket.Connect, and Socket.Bind. It may be a stupid question, but I was just curious. Because I tried a test, and I can't bind two sockets to the same port/ip but I can connect with one socket, and bind with another to the same ip/port. Thanks
3
2101
by: Court Jester | last post by:
Hi all, Excuse me if this is wrong forum for this but I've implemented a protocol handler for my socket server using the state pattern and it works fine until I attempt to introduce heartbeats which are sent independently of the client process on the same socket to the server. Now the state can be processing commands and finds that it has...
0
1760
by: Mangabasi | last post by:
Howdy, I would like to use the Synthesis Toolkit for a demo. I downloaded the STK from http://ccrma.stanford.edu/software/stk/index.html. It seems very powerful and user friendly. There are bindings for socket connections and TCL gui examples. I would like to get one of the demo samples work with Python/wxPython. I am including the TCL...
13
2707
by: Wade Yin | last post by:
Hi, If I can write a ActiveX component that can support socket communication in webpage, that will make browser have strongger capability to communicate with different clients, but not only can exchange info with the web server. I don't familarize with C# programming and here I just want to know is that possible to implemented?
1
3618
by: ElvisRS | last post by:
Hi, I'm writing a simple udp client using sockets. My code looks like this: initServer2 = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); initServer2.Connect(IPAddress.Parse(Properties.Settings.Default.InitServerAddress), Properties.Settings.Default.InitServerPort);
5
3165
by: AeonOfTime | last post by:
Let's assume a web application (in this case a browser-based game) with a custom HTTP server built on PHP, and a client also built on PHP. The client uses the server to access and change data. Even if the client server communication is not directly visible to the user (who logs into the client), the fact that the server is publicly accessible...
0
7584
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7783
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7879
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6129
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5426
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5144
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2009
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
828
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.