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

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.

Upvotes: 1

Views: 913

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58088

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

Upvotes: 1

Related Questions