Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Asmack Android TLS problem

$
0
0

Greetings

I use asmack-8-4.0.5.jar

 

I try to connect with ssl by using the DummySSLSocketFactory (The one that accepts all certificates)

 

ConnectionConfiguration config = new ConnectionConfiguration({serverip},5223);

config.setSocketFactory(new DummySSLSocketFactory());

config.setSecurityMode(SecurityMode.required);

config.setDebuggerEnabled(true);

 

I try to connect on port 5223

 

The error

 

11-05 18:16:20.062: W/XMPPConnection(11311): Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x62229ff8: Failure in SSL library, usually a protocol error

11-05 18:16:20.062: W/XMPPConnection(11311): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:766 0x59976838:0x00000000)

11-05 18:16:20.062: W/XMPPConnection(11311):     at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)

11-05 18:16:20.062: W/XMPPConnection(11311):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLS ocketImpl.java:371)

11-05 18:16:20.062: W/XMPPConnection(11311):     ... 7 more

11-05 18:16:20.070: W/System.err(11311):     at org.jivesoftware.smack.XMPPConnection.throwConnectionExceptionOrNoResponse(XMPP Connection.java:548)

11-05 18:16:20.070: W/System.err(11311):     at org.jivesoftware.smack.tcp.XMPPTCPConnection.throwConnectionExceptionOrNoRespon se(XMPPTCPConnection.java:867)

11-05 18:16:20.078: W/System.err(11311):     at org.jivesoftware.smack.tcp.PacketReader.startup(PacketReader.java:113)

11-05 18:16:20.085: W/System.err(11311):     at org.jivesoftware.smack.tcp.XMPPTCPConnection.initConnection(XMPPTCPConnection.j ava:482)

11-05 18:16:20.085: W/System.err(11311):     at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPC onnection.java:440)

11-05 18:16:20.093: W/System.err(11311):     at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection. java:811)

11-05 18:16:20.093: W/System.err(11311):     at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)

 

Even if i create my one trustmanger from a bks certificate and set it to the xml context I still have the same problem

 

sslcontent.init(null,

                        new TrustManager[] { trustManagerFromBks },

                        new java.security.SecureRandom());

 

Anyone with the same problem?


Viewing all articles
Browse latest Browse all 10742

Trending Articles