Can't make a profile on jchat

I have installed Openfire 4.2.3on a new windows server 2016, Integrated with Active directory. When I trie to make a profile on my Jchat I first get the “untrusted certificate”, I enter yes and then I get a “could not connect to chatserver.xx. Choose another service?”
I guess the Jchat client is ok, since I have another openfire I use it in my daily work.
I have opend the 5222 and the 5223 in my firewall.
Any sugestion?