GRADLE SunCertPathBuilderException: unable to find valid certification path to requested target
时间: 2023-09-25 16:06:49 浏览: 242
unable to find valid certification path to requested target 的问题
5星 · 资源好评率100%
GRADLE SunCertPathBuilderException: unable to find valid certification path to requested target错误是由于无法找到有效的证书路径引起的。 这个错误通常发生在使用HTTPS连接时,因为Java无法验证服务器的证书。解决这个问题的常用方法是下载站点证书,并将其导入到密钥库中,然后通过-Djavax.net.ssl.trustStore=... JVM选项来使用该密钥库。 另外,您还可以在Gradle的构建配置文件中配置信任的证书,以避免出现证书验证错误。 请注意,这个错误可能是由于服务器配置问题或证书过期等原因引起的,您可能需要与服务器管理员联系以获得更多支持。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [SunCertPathBuilderException: unable to find valid certification path to requested target错误的方法](https://blog.csdn.net/wh445306/article/details/128265595)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [gradle-trust-all:一个用于禁用 SSL 证书验证的 gradle 插件](https://download.csdn.net/download/weixin_42120541/19325493)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文