• Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent...  RSS feed

 
fadimanasfi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How can i retreive the secretkey used for encryption and decryption after the SSLHandshake process?
I wanna retreive this SecretKet to use it for encryption and decryption on another port.the goal is to have a SecureFTP.
Please, Do you have an idea?
if yes how can we use this SecretKey(wt are the methods) to encrypt and decrypt data on a new port?
That's all .
Thank you.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fadifadi, please review our naming policy and update your profile to display both a first and a second name. Thanks.
I don't think the session key is exposed, and even if it were, JSSE does not expose the encryption algorithms used. I must confess I'm not intimately familiar with the secure FTP protocol, but can't you just create a second SSL socket and have it join the session established by the first one (SSL[Server]Socket.setEnableSessionCreation(false))? Never tried it but it looks like it should work.
- Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!