Sample cod e SSL based application

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
LVL 2
bachra04Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CEHJConnect With a Mentor Commented:
You might find the following recent discussion of interest

http:Q_27343037.html
0
 
CEHJCommented:
'shared key'?
0
 
bachra04Author Commented:
i.e. symmetric key and not public key ( with certificate)...
0
Building an Effective Phishing Protection Program

Join Director of Product Management Todd OBoyle on April 26th as he covers the key elements of a phishing protection program. Whether you’re an old hat at phishing education or considering starting a program -- we'll discuss critical components that should be in any program.

 
bachra04Author Commented:
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
 
CEHJCommented:
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
 
bachra04Author Commented:
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
 
CEHJCommented:
I'm not aware of any way in which the operation of the SSL protocol can be changed in Java
0
 
bachra04Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.