Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
correajd opened this issue Dec 4, 2017 · 3 comments
Open

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

correajd opened this issue Dec 4, 2017 · 3 comments

Comments

@correajd
Copy link

correajd commented Dec 4, 2017

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
Copy link
Author

correajd commented Dec 4, 2017

Issue resolved.

RestAssured.useRelaxedHTTPSValidation();

@wakaleo
Copy link
Member

wakaleo commented Dec 4, 2017

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants