今天是我第一次遇到这种问题,以前从来没有接触过这方面,请各位大虾帮忙!以前我一直向一个数据提供商发送一个http请求,得到数据,最近他们将请求改成了https的,并且让我们这些客户端安装他们的证书。我已经装好了证书,进行测试的时候,出现了如下错误:
avax.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
后来我上网查了一下,发现好像需要将证书导入到%JAVA_HOME%\lib\security\cacerts这个文件中才行,可是从来没弄过,希望大家能帮我写出格详细步骤,小妹感激涕零!!