I am trying to establish secure connection between Openfire and smack client and get the error org.jivesoftware.smack.SmackException$SecurityRequiredByClientException: SSL/TLS required by client but not supported by server
I am using Openfire 4.0.1 and have enabled 5223. Using smack on client side and connection configuration is as follows:
I’m not a developer and can’t comment on the code. Also don’t really know what this error means. But i think you don’t have to use 5223. It is a legacy obsolete port and shouldn’t be used. TLS should work on 5222 just fine.
I was trying to connect to 5222 but was getting above error immediately, but while connecting to 5223 there was some initial handshake and then an error was thrown. So I kept exploring the connection issue related to 5223. After a lot of research I found that smack needs TLS and that is supported only on 5222. In my code above i had to just remove the line