This content has been marked as final. Show 3 replies
This helped but I still have an issue. And I am not sure if it will be possible to overcome. I got the SSL handshake to work, but I still cannot make it work with Dirmi. The issue is the following. When the Dirmi session is created it takes an unconnected socket obtained from the parameterless constructor of the socket factory provided and tries to connect it in the SocketChannelConnector::connectSocket method. So when I tried to create the secure SSL socket by means of layering the unconnected socket in the parameterless constructor, it became a connected socket and when the method SocketChannelConnector::connectSocket was invoked I got the exception:
Caused by: java.net.SocketException: Already connected
I am quite stack with this problem. So I would need a method to create a secure SSL socket that is not connected by means of layering the given unconnected socket. Any suggestions will be much appreciated.