How to connect to server with "old style ssl" enabled


I want to connect to a xmpp server, here is the settings, so how to make it work as I don’t know the settings for “old style ssl” enabled.

  1. Server port : 5223

  2. Security mode must be disabled.

  3. Make sure you tick ‘Legacy SSL’ to enable the ‘Old style SSL’ authentication.


final ConnectionConfiguration connConfig = new ConnectionConfiguration(“xxxx”, 5223, “xxx”);


connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.disab led);

XMPPConnection connection = new XMPPConnection(connConfig);

try {


System.out.println("Connected: " + connection.isConnected());

} catch (XMPPException e) {

// TODO Auto-generated catch block



I always got the following error:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(

at org.jivesoftware.smack.XMPPConnection.initConnection(

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:596)

at org.jivesoftware.smack.XMPPConnection.connect(

at test.main(