I am working on automating the API testing using Rest assured. I have one API in which if we call that API using http then server would return response code as 302 and location as same URL but with https . I ahve written the below code:
RequestSpecification httprequest= RestAssured.given().relaxedHTTPSValidation();
Response response= httprequest.request(Method.GET, uri);
On executing the above, system is throwing an error javax.net.ssl.SSLHandshakeException
I have searched a lot but got no proper solution to this.