How do I secure communications between s2s openfire servers

Hello,

I am trying to send data between users on 2 different domains. My openfire servers have self signed certificates.

My s2s communication is unsecure and the TLS negotiation fails and so does the server dial back…method

Can anyone help with securing my s2s communication ?

Thanks

Nagesh