I am running a JUnit test for JAX-RS GET request using RestAssured. I am making a call to a "http" url below
given().request().log().all().accept(ContentType.JSON).auth().basic(this.testUser,this.testPassword).cookie(testCookie).response().log().all().get(HTTP_TEST_URL).then().statusCode(200).contentType(ContentType.JSON);
and I get following error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed ... Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Since I am using "http" and not "https" I fail to understand the SSLException.
Any help on the same would be highly appreciated!