@Override
                public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) {
                    return XMPP_DOMAIN;
                }
Creates a KeyManager that identifies with the provided keyPair and certificate chain.
xmppserver/src/test/java/org/jivesoftware/openfire/session/AbstractRemoteServerDummy.java