This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Socket and Security...  RSS feed

 
nikos sokaf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When we using a tcp/ip socket connection between the client and the server we transmit data.

In a server/client enviroment that sends text-data,how can we be safe?
How can server recognise the proper client?Should i use SSL?Does SSL uses the same philosophy with simple Sockets?

Thanks for your guidelines!
 
Catalin Merfu
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can easily implement a secure connection with j2se.

The structure of the client and server programs are the same
as when not using SSL. Only the way you establish the connection
is different.

A secure connection involves:
- Client authentication. For example the client may have to supply
an user name and password after the socket connection was established;
- Message encryption. All messages exchanged between the client and server
are encrypted by the SSL connection;
- Server authentication. This means the client verifies the server
it connects to is ligitimate.

Resources:
- packages javax.net and javax.net.ssl.
- keytool
- You will need to install an SSL certificate on
the server side and learn how to use it:
http://java.sun.com/developer/technicalArticles/Security/secureinternet/
 
nikos sokaf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was Helpfull!
Thank you for your post!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!