powered by Jive Software

"old ssl" not working

I’m am trying to build a chat client for league of legends but the xmpp server of riot games require the “old ssl”. Does anyone has a idea to make my code able to connect to it?

import org.jivesoftware.smack.ConnectionConfiguration;

import org.jivesoftware.smack.XMPPConnection;

import org.jivesoftware.smack.XMPPException;

import com.discursive.cas.extend.util.DummySSLSocketFactory;

public class Test {

public static void main(String[] args){

ConnectionConfiguration connConfig = new ConnectionConfiguration(“chat.eu.lol.riotgames.com”, 5223);

connConfig.setSASLAuthenticationEnabled(false);

connConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.enabled);

connConfig.setSocketFactory(new DummySSLSocketFactory());

XMPPConnection connection = new XMPPConnection(connConfig);

try {

connection.connect();

} catch (XMPPException e1) {

e1.printStackTrace();

}

try {

            connection.login("templarthelast@PVP.net", "AIR_pw");

} catch (XMPPException e) {

e.printStackTrace();

}

System.out.println(“omg”);

}

}