Ubuntu Forums Archive Viewer

Not able to transmit keys across SSL socket in Java

Archived thread 1003167 from Programming Talk. Markdown source: Programming_Talk/thread_1003167_Not_able_to_transmit_keys_across_SSL_socket_in_Jav.md

Original URL About this archive
#1

Hi, I have established an SSL socket between two machines . I created a DES Key on one machine using Keygenerator class and generated the key using generatekey(). This returns an object of type Key. I want to tranmit this key to the other machine using the SSLSocket . I am able to convert the key to a string to send it through the SSL Socket but Im not able to convert the string back to a key Datatype at the other end.

Any ideas or help regarding this?

Thanks