Smack报错:Trust anchor for certification path not found

来源:互联网 发布:淘宝假冒伪劣产品 降权 编辑:程序博客网 时间:2024/06/06 01:47

错误日志:

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

原因分析:没有SSL证书

解决方法:

builder.setSecuryMode(SecuryMode.disable)

1 0
原创粉丝点击