bachra04
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
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
'shared key'?
ASKER
i.e. symmetric key and not public key ( with certificate)...
ASKER
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
ASKER
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.
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
ASKER
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.