Nice post on checking the security of your connection to an XMPP server from @amolith
https://blog.jmp.chat/b/mitigating-mitms-in-xmpp