powered by Jive Software

Can't connect to chat server

I am using the smack libraries to try to connect to a OpenFire server I have running on my local machine. Haven’t changed any settings on the server so using its default settings (using embedded DB). Here is my very simple code:

try {
            ConnectionConfiguration conConfig = new ConnectionConfiguration("localhost", 5222);
            XMPPConnection xmppConnection = new XMPPConnection(conConfig);
            xmppConnection.connect();
        } catch (XMPPException e) {
            e.printStackTrace();
        }

I get this exception, anyone have any insight into what is causing this? Is there additional setup I need to do to my server? Maybe some certificate setup or something?

java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
at java.security.KeyStore.load(KeyStore.java:1185)
at org.jivesoftware.smack.ServerTrustManager.(ServerTrustManager.java:63)
at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:12 46)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:313)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
… 7 more