Solved

Sample cod e SSL based  application

Posted on 2011-09-29
8
246 Views
Last Modified: 2012-05-12
Hi guys,

This is an extension to  a previous question I have asked before.

I'm looking for a sample java client server SSL application using a shared key and basically from the client side :

The user enter the password , ip address and port number and connects securely to the server (SSLServerSocket).

In addition I want to do things asynchronously

Any sample code or links will be very helpful
0
Comment
Question by:bachra04
  • 4
  • 4
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 36818347
'shared key'?
0
 
LVL 2

Author Comment

by:bachra04
ID: 36818357
i.e. symmetric key and not public key ( with certificate)...
0
 
LVL 2

Author Comment

by:bachra04
ID: 36818378
If it is very complex or hard to find I will go for  solution with public key but is easy to use and implement
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
LVL 86

Expert Comment

by:CEHJ
ID: 36818435
Symmetric keys are generated automatically and on the fly in SSL - that's how it works. You're describing something that's not SSL i think
0
 
LVL 2

Author Comment

by:bachra04
ID: 36818467
no I'm talking about SSL , I worked before on Secure RTP using C and OpenSSL both sender and receivers needs to exchange secret key and then establish a secure link.
In this cas e I don't need to exchange the key I assume the client application will know the server password that will be used to generate the key.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 36818489
I'm not aware of any way in which the operation of the SSL protocol can be changed in Java
0
 
LVL 2

Author Comment

by:bachra04
ID: 36818563
OK then please forget about symmetric key  for now I'm looking really for a good step by step way to build the application . I saw there are some manuel steps like in the folollowing link:
http://www.exampledepot.com/egs/javax.net.ssl/Server.html
Is it possible to do them programmatically during installation ?

also Is it possible to give more clarification about self signed certificate and keyStore ?

Thank
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 36818596
You might find the following recent discussion of interest

http:Q_27343037.html
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question