-
我是在 gradle sync 的時候遇到這個問題, 導致 sync 失敗, 從而不能更新線上 maven 包, 導致 idea 飄紅
-
gradle sync 報錯如下
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Relevant discussions can be found on the Internet at:
...
Caused by: org.gradle.api.UncheckedIOException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Cause: unable to find valid certification path to requested target
- 我遇到這個問題純屬是 Charles 開了 MacOS 代理, 導致證書校驗失敗的問題, 將 Charles 的 MacOS Proxy 關閉就好了(windows 應該也關閉電腦代理差不多)