AnsweredAssumed Answered

javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found

Question asked by yuexl on Feb 27, 2015
Latest reply on Jun 3, 2015 by QuinnChen

Connection closed with error

    javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

            at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.ja va:306)

            at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl. java:598)

            at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.ja va:560)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.initReaderAndWriter(XMPPTCPConnect ion.java:620)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnecti on.java:720)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$900(XMPPTCPConnection.java: 137)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:981)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPCon nection.java:915)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:930)

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

     Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

            at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:3 18)

            at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl. java:219)

            at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:113)

            at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocke tImpl.java:525)

            at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)

            at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.ja va:302)

            at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl. java:598)

            at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.ja va:560)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.initReaderAndWriter(XMPPTCPConnect ion.java:620)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnecti on.java:720)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$900(XMPPTCPConnection.java: 137)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:981)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPCon nection.java:915)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:930)

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

     Caused by: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

            at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:3 18)

            at com.android.org.conscrypt.TrustManagerImpl.checkServerTrusted(TrustManagerImpl. java:219)

            at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:113)

            at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocke tImpl.java:525)

            at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)

            at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.ja va:302)

            at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl. java:598)

            at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.ja va:560)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.initReaderAndWriter(XMPPTCPConnect ion.java:620)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnecti on.java:720)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$900(XMPPTCPConnection.java: 137)

            at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:981)

 

 

how can i fix this issure?

thanks in advance

Outcomes