Problems with s2s connections

Hi I have Openfire 4.0.0 installed but I’m having problems when trying to make a connection s2s, I get the following errors:

2016.04.18 10:25:14 INFO [pool-22-thread-1]: org.jivesoftware.openfire.session.LocalOutgoingServerSession[Create outgoing session for: jabber to] - STARTTLS negotiation failed. Closing connection (without sending any data such as or ).

Not sure if it problems with the firewall or the openfire whether but when I eg telnet to me works well