Hi guys,
I am trying to use Mina with android.
Up to this everything is working fine.
Now I am trying to add SSL support using SSLFilter dynamically.
My problem is on device, I am getting 'isSSLStarted' 'true' but when I send
message, my connection is get closed.
Can anybody help me to analyze & solve this issue?
Is this due to handshake failure? How to check if handshake is successfull
or not.
Some more details.
I am using JSON communication.
SSLContext c = SSLContext.getInstance( "TLS" );
c.init(null, null, null);
SslFilter sslFilter = new SslFilter(c);
sslFilter.setUseClientMode(true);
session.getFilterChain().addFirst("mySSL", sslFilter);
session.setAttribute(SslFilter.DISABLE_ENCRYPTION_ONCE, Boolean.TRUE);
--sending msg in JSON
assert session.getAttribute(SslFilter.DISABLE_ENCRYPTION_ONCE) == null;
Log.v(TAG,"isSslStarted:"+sslFilter.isSslStarted(session)); ==> it gives
true.
Thanks in advance.