我想测试 https (api) 客户端。
但我想关掉ssl validation柑橘。你能告诉我如何关闭 ssl 验证吗?
(httpActionBuilder -> httpActionBuilder
.client("https://localhost") .send() .get() .header(....)这是自动检查ssl证书。
我收到以下异常:
PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径;嵌套异常是 javax.net.ssl.SSLHandshakeException。
有没有办法关闭 ssl 验证(就像我们ssl在 postman 或任何其他框架中禁用验证一样)。
我将如何将上下文添加到柑橘测试的 ssl 上下文
http(httpActionBuilder -> httpActionBuilder .client(" https://....com ") .send() .get() .header(....)
MM们
largeQ
繁花不似锦
随时随地看视频慕课网APP
相关分类