rest-assured/src/main/java/io/restassured/RestAssured.java
public static void useRelaxedHTTPSValidation(String protocol) {
        config = RestAssured.config().sslConfig(SSLConfig.sslConfig().relaxedHTTPSValidation(protocol));
    }
public static void useRelaxedHTTPSValidation(String protocol) {
        config = RestAssured.config().sslConfig(SSLConfig.sslConfig().relaxedHTTPSValidation(protocol));
    }
public static void useRelaxedHTTPSValidation ( String protocol ) { config = RestAssured . config ( ) . sslConfig ( SSLConfig . sslConfig ( ) . relaxedHTTPSValidation ( protocol ) ) ; }
Use relaxed HTTP validation with a specific protocol. This means that you'll trust all hosts regardless if the SSL certificate is invalid. By using this
method you don't need to specify a keystore (see {@link #keyStore(String, String)} or trust store (see {@link #trustStore(java.security.KeyStore)}.
<p>
This is just a shortcut for:
</p>
<pre>
RestAssured.config = RestAssured.config().sslConfig(sslConfig().relaxedHTTPSValidation(&lt;protocol&gt;));
</pre>

@param protocol The standard name of the requested protocol. See the SSLContext section in the <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SSLContext">Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard protocol names.
Use relaxed HTTP validation with a specific protocol . This means that you ll trust all hosts regardless if the SSL certificate is invalid . By using this method you don t need to specify a keystore ( see { @link #keyStore ( String String ) } or trust store ( see { @link #trustStore ( java . security . KeyStore ) } . <p > This is just a shortcut for : < / p > <pre > RestAssured . config = RestAssured . config () . sslConfig ( sslConfig () . relaxedHTTPSValidation ( &lt ; protocol&gt ; )) ; < / pre >