rest-assured/src/main/java/io/restassured/RestAssured.java
public static void keyStore(String pathToJks, String password) {
        Validate.notEmpty(password, "Password cannot be empty");
        applyKeyStore(pathToJks, password);
    }
public static void keyStore(String pathToJks, String password) {
        Validate.notEmpty(password, "Password cannot be empty");
        applyKeyStore(pathToJks, password);
    }
public static void keyStore ( String pathToJks , String password ) { Validate . notEmpty ( password , "Password cannot be empty" ) ; applyKeyStore ( pathToJks , password ) ; }
Apply a keystore for all requests
<pre>
given().keyStore("/truststore_javanet.jks", "test1234"). ..
</pre>
</p>
<p>
Note that this is just a shortcut for:
</p>
<pre>
RestAssured.config = RestAssured.config().sslConfig(sslConfig().keyStore(pathToJks, password));
</pre>

@param pathToJks The path to the JKS. REST Assured will first look in the classpath and if not found it will look for the JKS in the local file-system
@param password  The store pass
Apply a keystore for all requests <pre > given () . keyStore ( / truststore_javanet . jks test1234 ) . .. < / pre > < / p > <p > Note that this is just a shortcut for : < / p > <pre > RestAssured . config = RestAssured . config () . sslConfig ( sslConfig () . keyStore ( pathToJks password )) ; < / pre >