#PKIX

idea 使用阿里云仓库下载的jar包出现证书校验问题(PKIX:unable to find valid certification path to requested target)

 1.情景展示  从阿里云仓库下载下来的jar包,在执行编译compile或者打包package时,报错:无效证书问题  sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpatht...

解决PKIX:unable to find valid certification path to requested target 的问题

问题的根本是:缺少安全证书时出现的异常。解决问题方法:将你要访问的webservice/url....的安全认证证书导入到客户端即可。以下是获取安全证书的一种方法,通过以下程序获取安全证书:/**Copyright2006SunMicrosystems,Inc.AllRightsReserved.**Redistrib...