16 Replies Latest reply on Jul 26, 2017 1:27 AM by wroot

    SSL handshake failed on Openfire 4.1.4

    Morteza

      I have a conversations application on my phone. it perfectly works with Openfire 4.0,1 however when i use newer version of openfire I cannot connect anymore. here is what i get from connecting to Openfire 4.1.4

       

      2017.06.26 21:15:47 INFO  [socket_c2s-thread-2]: org.jivesoftware.openfire.net.SASLAuthentication - Support added for the 'CRAM-MD5' SASL mechanism.

      2017.06.26 21:15:47 INFO  [socket_c2s-thread-2]: org.jivesoftware.openfire.net.SASLAuthentication - Support added for the 'GSSAPI' SASL mechanism.

      2017.06.26 21:15:47 INFO  [socket_c2s-thread-2]: org.jivesoftware.openfire.net.SASLAuthentication - Support added for the 'JIVE-SHAREDSECRET' SASL mechanism.

      2017.06.26 21:15:47 WARN  [socket_c2s-thread-2]: org.jivesoftware.openfire.nio.ConnectionHandler - Closing connection due to exception in session: (0x00000002: nio socket, server, /192.168.1.104:44784 => /192.168.1.104:5222)

      javax.net.ssl.SSLHandshakeException: SSL handshake failed.

          at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:487)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(D efaultIoFilterChain.java:417)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilt erChain.java:47)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceiv ed(DefaultIoFilterChain.java:765)

          at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapte r.java:109)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(D efaultIoFilterChain.java:417)

          at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(Defau ltIoFilterChain.java:410)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoP rocessor.java:710)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPolling IoProcessor.java:664)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPolling IoProcessor.java:653)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPoll ingIoProcessor.java:67)

          at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractP ollingIoProcessor.java:1124)

          at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

          at java.lang.Thread.run(Thread.java:745)

      Caused by: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown

          at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)

          at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1646)

          at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1614)

          at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1780)

          at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1075)

          at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:901)

          at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:775)

          at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)

          at org.apache.mina.filter.ssl.SslHandler.unwrap(SslHandler.java:728)

          at org.apache.mina.filter.ssl.SslHandler.unwrapHandshake(SslHandler.java:666)

          at org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:552)

          at org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:351)

          at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:468)

          ... 15 more

       

      any idea how to solve this?