HttpClient请求https报ssl.SSLHandshakeException
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
这个问题是因为HttpClient请求https时需要ssl认证
解决方式有两种
一、正规途径,我们需要将证书导入到密钥库中
参考连接:https://www.freesion.com/article/90391342697/
二、绕过https证书认证实现访问
参考连接:https://www.cnblogs.com/yaowen/p/9238651.html

浙公网安备 33010602011771号