How to use SSL to connect 2 c# console app clients ?

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

Guest

Hi,

1. How to use SSL to connect 2 c# console application clients ?

2. Ineroperability with Java :
How to use SSL to connect C# console application client and JAVA console
application client ?

Thanks.
 
Yaron,

The answer to both would be to use Web Services over an HTTPS
connection.

Either that, or use an SSL socket connection with a custom protocol that
is understood by the java console and your app.

.NET 1.1 and before does not have support for SSL sockets. I think
there is something in the Indy project (http://www.indyproject.org) which
handles this.

I believe that .NET 2.0 has support for SSL. You would create an
SslStream instance which would then wrap another stream that you want to
read/write data from/to.

Hope this helps.
 
Hi Nicholas Paldino,

I am interested in a peer to peer communication using SSL without
WebServices and HTTPS when one peer is written in c# and the other is written
in java.

the java peer use keystore (PKCS#12) and keytool to generate this keystore
file and the ssl algorithem is sunx509.

I need to write the c# peer application.

as you say there is no direct support in C#.NET for SSL, can i do this using
P/Invoke ?

Thanks a lot.


Nicholas Paldino said:
Yaron,

The answer to both would be to use Web Services over an HTTPS
connection.

Either that, or use an SSL socket connection with a custom protocol that
is understood by the java console and your app.

.NET 1.1 and before does not have support for SSL sockets. I think
there is something in the Indy project (http://www.indyproject.org) which
handles this.

I believe that .NET 2.0 has support for SSL. You would create an
SslStream instance which would then wrap another stream that you want to
read/write data from/to.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


yaron said:
Hi,

1. How to use SSL to connect 2 c# console application clients ?

2. Ineroperability with Java :
How to use SSL to connect C# console application client and JAVA
console
application client ?

Thanks.
 
Back
Top