7 Replies Latest reply on Jan 16, 2017 6:50 AM by Raphael Paulino

    Spark 2.8.2 Unable to verify certificate

    Elijah

      In case of connection of Spark 2.8.2 to the Openfire 4.1.1 server the error - "Unable to verify certificate" appears

      To clean an error, did the following:

      Came into Spark in "In addition" and included "Accept all certificates (self-signed/expired/not trusted)". Further there was a new error of "Certificate hostname verification failed". I included "Disable certificate hostname verification (not recommended)" the final error - "The wrong user name or the password" appeared. In login, the password and the server I can have no error. In what there can be a problem?

       

      The Spark 2.7.7 version works without problems.

        • Re: Spark 2.8.2 Unable to verify certificate
          wroot

          What is your server's name (shown on the first screen of Admin Console) and what do you put into Domain field in Spark? What error is logged when you get wrong user/password error? C:\Users\User\AppData\Roaming\Spark\logs

            • Re: Spark 2.8.2 Unable to verify certificate
              Elijah

              Server Name - 192.168.1.54 He's internal network to the outside are not allowed to exit. Domain settings either, the field is empty.

               

              Log errors from file - errors.log:

               

              jan 12, 2017 9:25:10 AM org.jivesoftware.spark.util.log.Log error

              SEVERE: connection error

              org.jivesoftware.smack.SmackException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

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

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

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

                at java.lang.Thread.run(Unknown Source)

              Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

                at sun.security.ssl.Alerts.getSSLException(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

                at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

                at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

                at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)

                at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)

                at sun.security.ssl.Handshaker.processLoop(Unknown Source)

                at sun.security.ssl.Handshaker.process_record(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

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

                at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1000(XMPPTCPConnection.java :139)

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

                ... 3 more

              Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

                at sun.security.validator.PKIXValidator.doBuild(Unknown Source)

                at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)

                at sun.security.validator.Validator.validate(Unknown Source)

                at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)

                at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)

                at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)

                ... 14 more

              Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

                at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)

                at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)

                at java.security.cert.CertPathBuilder.build(Unknown Source)

                ... 20 more

               

               

              jan 12, 2017 9:25:56 AM org.jivesoftware.spark.util.log.Log error

              SEVERE: connection error

              org.jivesoftware.smack.SmackException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

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

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

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

                at java.lang.Thread.run(Unknown Source)

              Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

                at sun.security.ssl.Alerts.getSSLException(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

                at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

                at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

                at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)

                at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)

                at sun.security.ssl.Handshaker.processLoop(Unknown Source)

                at sun.security.ssl.Handshaker.process_record(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

                at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

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

                at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1000(XMPPTCPConnection.java :139)

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

                ... 3 more

              Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

                at sun.security.validator.PKIXValidator.doBuild(Unknown Source)

                at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)

                at sun.security.validator.Validator.validate(Unknown Source)

                at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)

                at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)

                at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)

                ... 14 more

              Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

                at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)

                at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)

                at java.security.cert.CertPathBuilder.build(Unknown Source)

                ... 20 more

            • Re: Spark 2.8.2 Unable to verify certificate
              Raphael Paulino

              Try this:

              In Spark >> Advanced >> mark "Accept all certificates" and "Disable certificate hostname verification".

              1 of 1 people found this helpful