XMPP Connection on HTTPS

Hi Friends,

I am new here,

My requirement is , I need to connect (login to) XMPP server using my client side java program on SSL , not normal HTTP.

How can I connect XMPP server using HTTPS instead of normal HTTP in my java program?


Smack does not support http binding, so neither HTTP or HTTPS is possible with it.


I just want to connect XMPP server using Secure Socket Layer(SSL). That’s it.

How is it possible?


You want to create a ConectionConfiguration object, and set an SSLSocketFactory of your choice in it. Then create your XMPPConnection with that. Take a look at the Spark source if you want an example.