Ignore SSL Certificate -.relaxedHTTPSValidation()
- Ignore the SSL certificate: .relaxedHTTPSValidation()
@Test
public void SSLCERTIFICATE() {
RestAssured.baseURI = "https://expired.badssl.com/";
given().log().all().relaxedHTTPSValidation()// off certification validation
.when().get().then().assertThat().statusCode(200);
}
1- Certificate Error
Comments
Post a Comment