我收到SSL握手问题如何在空手道中禁用SSL [英] I am getting getting SSL handshake issue How to disable ssl in karate

查看:58
本文介绍了我收到SSL握手问题如何在空手道中禁用SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试访问安全端点时,即使使用以下空手道方法禁用了ssl,也遇到了SSL握手异常.

When I am trying to access a secure endpoint, I am getting SSL handshake exception even after I disable ssl by using the following karate ways.

option1)在功能文件中声明了以下内容 *配置ssl = true

option1) declared the following in feature file * configure ssl = true

option2)在karate-config.js中声明了以下内容

option2) declared the following in karate-config.js

karate.configure('ssl',{trustAll:true}); (或者) karate.configure('ssl',true);

karate.configure('ssl', { trustAll: true }); (or) karate.configure('ssl', true);

例外: javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求的目标的有效证书路径.

Exception: 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.

请帮助我解决这个问题.

Please help me out on this issue.

推荐答案

也许您错过了使urlhttps开头的情况,反之亦然.

Maybe you missed to make the url start with https, or vice-versa.

如果仍然有问题,请按照以下过程操作: https ://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

If you still have issues, follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

这篇关于我收到SSL握手问题如何在空手道中禁用SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆