最近由于在做充值方面的需求,要用到别人的接口,其中有个接口是用Php写的webService.研究了一下。
这样对于一般的情况来说是可以访问的,但是如果使用了https://xxx访问的话。有可能就受到安全证书的限制导致异常: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
;关于这个异常网上也有方法,如何使用下章节说明