473,581 Members | 3,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Communication between c# and java using SSL

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.
Jan 18 '06 #1
1 3691
yaron,

From what I can tell, you can call the setCertificateE ntry 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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"yaron" <ya***@discussi ons.microsoft.c om> wrote in message
news:44******** *************** ***********@mic rosoft.com...
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.

Jan 18 '06 #2

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

Similar topics

3
5336
by: ^CeFoS^ | last post by:
Hi to everybody, due to I want to use the serial port of a server machine through an applet allocated in html document. > Then one application will run in the server machine and using > the serial port. The other application that will be called in the html > document that it'll allocate the frame with the user interfaz and > it'll manage the...
0
2428
by: John Pedersen | last post by:
Hi, Since I have installed mysql 4.1 I am getting this error on trying to reach the db: java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306? Mysql is running OK. I can access it with the command prompt, telnet, sqlyog, but not Java.
2
2301
by: Julia Donawald | last post by:
Hi, maybe I am off-topic with my question, so then sorry for this! I am starting of developing an application which consists of a rather complex graphical user-interface and a business-logic part (so that's the usual case, I suppose ;)). There are 4 main reuqirements for the application: 1. Time to market
1
9005
by: Praveen | last post by:
Hi, I have installed WebSphere Portal on AIX and connected to DB2 on a remote machine, Getting the followin errors when trying to get the values from database thru applications installed on Portal. Any Help Appreciated. Thanks in advance. Praveen Singh
0
352
by: Mihir Vaidya | last post by:
I want a C# and a JAVA process to communicate with each other using IPC or Pipes. I tried the following. 1. Invoke the JAVA Program. 2. Spawn a C# process using the Runtime.exec() command. 3. Obtain the handle to the child (C#) process and get the input and output stream. 4. Use the Process I/O stream to the read and write to the C#...
0
3258
by: news.onet.pl | last post by:
I hava a problem with communication between Java/Corba server based on JDK ORB with Java/Corba client (applet) based on the same ORB. I`m using IOR to localize server. client`s ORB i initialize like that: Dane proxy = null; ORB orb = ORB.init(parent, null); org.omg.CORBA.Object obj = orb.string_to_object(sIOR); proxy =...
7
3592
by: bylum | last post by:
Servlet SQLException Communication link failure java howto i can't connect jsp and database(mysql). This is the exception: exception org.apache.jasper.JasperException: javax.servlet.ServletException: java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream
6
6580
by: Kasper Lindberg | last post by:
Hi NG, How to do two-way-interprocess communication using java? Imagine a client/server setup where the client can request a number of functions to be performed by the server. Since the server sometimes pushes messages to the client(s), and no assumption can be made regarding the client and when/how often it is running, a second...
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
2769
by: rcreddych | last post by:
I am getting the following error while deploying a simple Java Stored Procedure. I am using db2 8 and using the IBM Data Studio. I am new to DB2. Your help will be apreciated. CHETR.PROCEDURE1 - Deploy started. CHETR.PROCEDURE1 - Created temporary working directory...
0
7789
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8141
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
7892
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
8167
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
6548
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...
0
5358
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...
0
3817
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1130
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.