How to make HTTPS GET call with certificate in Rest-Assured java

rohitkadam19 picture rohitkadam19 · Apr 1, 2016 · Viewed 52.7k times · Source

How can I make a GET call using Rest-Assured in java to a endpoint which requires certificate. I have certificate as .pem format. In PEM file there is certificate and private key.

Answer

Saeed Zarinfam picture Saeed Zarinfam · Sep 2, 2017

In my case using "relaxed HTTPs validation" fixed my problem:

given().relaxedHTTPSValidation().when().post("https://my_server.com")