Hi Flow. I configured the SSL connection with the self certificate. It was a matter of correctly importing the cert, and using the run-time JVM SSLFactory, with a TrustManager wich does the job. I could have gone along the line of DummySocketFactory, but that requires an implementation of the TrustManmager interface, ssl context and managing all possiblee scenarios.
I have a question about TLS. It works, and it appears, it doesn't matter if I have the self-certificate imported or not. Is Smack SocketFactory/TrustManager validating the certificate on-the-fly, without a need of importing it?
If I acquired CA cert for Openfire, is Smack SocketFactory( my client code ) going to authenticate the CA cert aginst the default trust store(cacerts ) or I need to handle it in code?
thanks