https 请求绕过证书认证 Get或Post(证书过期报错)
发布时间:2018-10-16 14:24,
浏览次数:1008
, 标签:
https
Get
Post
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
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
* 证书过期不要慌…
配置容器为http请求,搞定。
* 如果postman请求遇到一下情况
Could not get any response
不要慌。。。。
解决:
A. 打开postman —> File —> Settings
B. 关闭图片红框里的SSL…选项为OFF
C. 大功告成。。。。
3. java请求…直接贴代码