Hi all.
How can i secure socket communications?
Is it possible to use ssl?
Thanks,
Sharon. 8 6354
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.
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.
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.
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
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
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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 annoying.
|
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. Active is true, socket.poll(1,selectRead) is true. When checking the MS class documentation, it is...
|
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 ability to connect to my
|
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
|
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 received
a message for the client and this contravenes the protocol and state
transition is...
| |
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 code for
the drums demo (this was the shortest one).
Has anybody converted this to wxPython? ...
|
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?
|
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);
|
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
(a port sniffer would be enough to find it) means the communication
has to be secured.
How...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |