serenity-bdd / serenity-documentation

The main Serenity BDD documentation
Apache License 2.0
41 stars 61 forks source link

javax.net.ssl.SSLHandshakeException occurring in my first step #115

Open correajd opened 6 years ago

correajd commented 6 years ago

I seem to have this issue with an SSL certificate. While I could put this in my java home certs, I'm going to have to run my code in jenkins. Does serenity have an elegant solution for storing certs?

[main] INFO net.thucydides.core.steps.StepInterceptor - STEP FAILED: createOAuthToken - 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

correajd commented 6 years ago

Issue resolved.

RestAssured.useRelaxedHTTPSValidation();

wakaleo commented 6 years ago

This would be a great think to post on http://serenity-bdd.rocket.chat, I'm sure lots of users would fine it useful.

rmak1981 commented 4 years ago

RestAssured.useRelaxedHTTPSValidation(); I am completely new to this field - can you please tell where to use this to resolve this issue