原文:解決PKIX(PKIX path building failed) 問題 unable to find valid certification path to requested target

最近在寫java的一個服務,需要給遠程服務器發送post請求,認證方式為Basic Authentication,在請求過程中出現了 PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to req ...

2016-06-30 15:20 6 6021 推薦指數:

查看詳情

解決PKIXunable to find valid certification path to requested target問題

問題的根本是: 缺少安全證書時出現的異常。 解決問題方法: 將你要訪問的webservice/url....的安全認證證書導入到客戶端即可。 以下是獲取安全證書的一種方法,通過以下程序獲取安全證書: 編譯InstallCert.java,然后執行:java ...

Thu Oct 29 17:57:00 CST 2015 0 24022
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM