I am getting getting SSL handshake issue How to disable ssl in karate

旧街凉风 提交于 2020-01-05 03:46:41

问题


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) declared the following in feature file * configure ssl = true

option2) declared the following in karate-config.js

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

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.


回答1:


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

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



来源:https://stackoverflow.com/questions/58557483/i-am-getting-getting-ssl-handshake-issue-how-to-disable-ssl-in-karate

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!