Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java SSLSocket how to make a force handshake in the middle ?

843811Jun 23 2009 — edited Jun 23 2009
How 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 !!!!!!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2009
Added on Jun 23 2009
2 comments
338 views