It actually seems to be working. You are connecting to an XMPP server, that is serving a TLS certificate. What’s going wrong is that none of the subjects that are defined in the certificate match the name of the server that you’re connecting to. Assuming that the certificate is correct, the most likely cause is that you’re using an IP address to establish the connection, instead a domain name.