Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Urgent...

 
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.
 
author
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
 
Something about .... going for a swim. With this tiny ad ...
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!