• Post Reply Bookmark Topic Watch Topic
  • New Topic

Secured Socket Layer (SSL) w/ Java

 
Charles Sexton
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain to me how to create a SSL connection in java through a n-tier architecture. Possibly a list of java libraries which are used. I did Google this but almost all the sources are for web applications and not systems.

What I possibly thought of:

A key rotation. The client is given a set of keys. The server has a set of keys. Each client will have a different set of keys. This is called key rotation? I thought of using I/O streams for the keys. Each message will contain a random key from the client's set. The server will verify the key then accept the next client's request. I am unsure of how to do the certificates to possibly send the key and client request at the same time.

All help is appreciated
 
Henry Wong
author
Sheriff
Posts: 22526
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Charles Sexton wrote:
A key rotation. The client is given a set of keys. The server has a set of keys. Each client will have a different set of keys. This is called key rotation? I thought of using I/O streams for the keys. Each message will contain a random key from the client's set. The server will verify the key then accept the next client's request. I am unsure of how to do the certificates to possibly send the key and client request at the same time.



First, SSL is a very specific solution. Your question seem to be more on how does the endpoints agree on a key to do encryption. Is this true? Or are you looking for exactly how SSL works? If the later, then it certainly doesn't do it as you mentioned.

Henry
 
Charles Sexton
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Henry,
Thank you for the reply. I would like to do a key rotation at the end point of the communication between a server and client. I am confused on how SSL works in java. I know that encryption is done with a key and a certificate but I am unsure on how to do the certificate or the SSL connection based on your response.
 
Charles Sexton
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSSE (Java Secure Socket Extension) is what I am looking for!!! This library is java's version of SSL and TSL protocol. Question is how do the keys work to add a key rotation?


https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!