How to get current ssl session id in rmi with ssl

Hi,

There is a question about rmi with sslsession, that I pay a few time to check java api and sourcecode but no result.

In a rmi call execution with ssl, how to get current session id in this call?

I google web and find only one resolution: customize its SocketFactory.

I wanna know from you, Is there have an easy way to get current call ssl session id in rmi with ssl.

Thank you.

Qinxian

[433 byte] By [bronze-starDukes] at [2007-11-26 12:15:12]
# 1

This is practically impossible even with the new 1.5 SslRMIClientSocketFactory. You can do it by providing your own client socket factory with some static methods for finding the current SSLSocket, SSLSession, etc. Takes a bit of doing.

In my opinion this is a major shortcoming of RMI/SSL. In fact, until Sun fixes this deficiency so that clients can do their own authorization of the peer, RMI/SSL can't really be considered secure. See RFC 2246 for full explanation.

<plug>

For one solution see also http://www.telekinesis.com.au, the RMI/SSL product.

</plug>

platinumsta at 2007-7-7 14:18:48 > top of Java-index,Archived Forums,Socket Programming...
# 2
Thank you ejp.I got it.RegardsQinxian
bronzestar at 2007-7-7 14:18:48 > top of Java-index,Archived Forums,Socket Programming...