Smack報錯:Trust anchor for certification path not found

錯誤日誌:

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

原因分析:沒有SSL證書

解決方法:

builder.setSecuryMode(SecuryMode.disable)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章