Link to home
Start Free TrialLog in
Avatar of bachra04
bachra04Flag for Canada

asked on

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

'shared key'?
Avatar of bachra04

ASKER

i.e. symmetric key and not public key ( with certificate)...
If it is very complex or hard to find I will go for  solution with public key but is easy to use and implement
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
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.
I'm not aware of any way in which the operation of the SSL protocol can be changed in Java
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
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial