Java SSLSocket how to make a force handshake in the middle ?
843811Jun 23 2009 — edited Jun 23 2009How can I make a force handshake (SSL re-negotition) in the middle of a SSL connection for testing purposes?
1. Established a SSL Connection with a (OpenSSL) SSL Server using a Java SSLSocket for client-side.
2. Intial Handshake is successful and connection works fine
3. But I want to make force handshakes in the middle to verify If my (OpenSSL) SSL Server works fine.
Tried,
sslSession.invalidate();
sslSesssion.startHandshake();
But a hand shake does not take place.
Please help !!!!!!!!