Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / December 2003

Tip: Looking for answers? Try searching our database.

Change existing socket to sslsocket?

Thread view: 
Christof Drescher - 18 Dec 2003 14:22 GMT
Hi,

I'm currently writing a server which requires that an already existing
Socket be changed into a Socket under TLS layer. I.e., I have
sucessfully established communication with a client, then after a
certain command exchange, the client starts TLS negotiation, and after
negotiation has sucessfully finished, the session goes on secured by
TLS.

I did NOT find a way to do this - has anyone an idea how this can be
done?

Thanx,
Christof
JK - 19 Dec 2003 13:05 GMT
Hi Christof,

I don't think it's possible, because the TLS handshake is completely
encapsulated in the SSLSocket and SSLServerSocket classes.

What you should be able to do is to start a TLS connection without
encryption and negotiate the encryption parameters later using the
startHandshake() method.

Regards
Jan.

> Hi,
>
[quoted text clipped - 10 lines]
> Thanx,
> Christof
Ronny Schuetz - 19 Dec 2003 15:50 GMT
Hi,

if you're using JSSE:

http://java.sun.com/j2se/1.4.2/docs/api/javax/net/ssl/SSLSocketFactory.html#crea
teSocket(java.net.Socket,%20java.lang.String,%20int,%20boolean
)

Ciao,
Ronny


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.