原文:解決javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.的問題

解決javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.的問題,出現這個問題的原因是:服務器不信任我們自己創建的證書,所以在代碼中必須要忽略證書信任問題。 解決代碼如下: 在調用獲取url內容 ...

2021-08-07 02:02 0 669 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM