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.
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
Something about .... going for a swim. With this tiny ad ...
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop