解决PKIX:unable to find valid certification path to requested target 的问题
MVN build 时候忽然遇到这样的异常: e: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 经过检查确认,完整的异常信息应该如下: 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 问题的根本是: 缺少安全证书时出现的异常。 解决问题方法: 将你要访问的webservice/url….的安全认证证书导入到客户端即可。 以下是获取安全证书的一种方法,通过以下程序获取安全证书: /* * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and … Continue reading 解决PKIX:unable to find valid certification path to requested target 的问题
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed