Smack 4 throws “SSLHandshakeException: ValidatorException: SunCertPathBuilderException” on connect
问题 For integration testing of my xmpp stack I set up a vysper server (0.7) on localhost. Now I want to connect to the server using smack-core and smack-tcp in version 4.0.2. Problem: 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 Since the smack 4 api has changed a lot, the examples found so far can not be