Communication between c# and java using SSL

G

Guest

Hi all,

I am building an application that use SecureSocket between java and c#.
I found that java need a "keystore" to communicate while c# use cert like
..cer or .p12 or .pfx , etc.
I have difficulties making them communicate.

Can anyone gives examples on how to make the "keystore" using java keytool
and how to generate the corrsponding cert for c#?
And gives example "hello world code" that make them communicate?
(my application need to run on .NET 1.1).

Thanks so much.
 
N

Nicholas Paldino [.NET/C# MVP]

yaron,

From what I can tell, you can call the setCertificateEntry method on the
KeyStore instance. You pass the alias and the certificate to use. From
there, you should be able to use your KeyStore instance where you need to.

Hope this helps.
 

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

Top