473,396 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Securing socket communications

Hi all.
How can i secure socket communications?
Is it possible to use ssl?
Thanks,
Sharon.
Jan 22 '06 #1
8 6332
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****@newsgroups.nospam> wrote in message
news:ur**************@TK2MSFTNGP11.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.com

"Markus Stoeger" <sp******@gmx.at> wrote in message
news:uc**************@TK2MSFTNGP12.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.com

"Sharon" <no*****@null.void> wrote in message
news:uJ**************@TK2MSFTNGP15.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****@newsgroups.nospam> wrote in message
news:ur**************@TK2MSFTNGP11.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.com> wrote in message
news:uh*************@TK2MSFTNGP12.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
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...
1
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....
1
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...
14
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...
3
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...
0
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...
13
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...
1
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);...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.