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