rest-assured/src/main/java/io/restassured/RestAssured.java
public static AuthenticationScheme certificate(String certURL, String password) {
        SSLConfig sslConfig = config().getSSLConfig();
        return certificate(certURL, password, CertificateAuthSettings.certAuthSettings().keyStoreType(sslConfig.getKeyStoreType()).trustStore(sslConfig.getTrustStore()).
                keyStore(sslConfig.getKeyStore()).trustStoreType(sslConfig.getTrustStoreType()).x509HostnameVerifier(sslConfig.getX509HostnameVerifier()).
                port(sslConfig.getPort()).sslSocketFactory(sslConfig.getSSLSocketFactory()));
    }
public static AuthenticationScheme certificate(String certURL, String password) {
        SSLConfig sslConfig = config().getSSLConfig();
        return certificate(certURL, password, CertificateAuthSettings.certAuthSettings().keyStoreType(sslConfig.getKeyStoreType()).trustStore(sslConfig.getTrustStore()).
                keyStore(sslConfig.getKeyStore()).trustStoreType(sslConfig.getTrustStoreType()).x509HostnameVerifier(sslConfig.getX509HostnameVerifier()).
                port(sslConfig.getPort()).sslSocketFactory(sslConfig.getSSLSocketFactory()));
    }
public static AuthenticationScheme certificate ( String certURL , String password ) { SSLConfig sslConfig = config ( ) . getSSLConfig ( ) ; return certificate ( certURL , password , CertificateAuthSettings . certAuthSettings ( ) . keyStoreType ( sslConfig . getKeyStoreType ( ) ) . trustStore ( sslConfig . getTrustStore ( ) ) . keyStore ( sslConfig . getKeyStore ( ) ) . trustStoreType ( sslConfig . getTrustStoreType ( ) ) . x509HostnameVerifier ( sslConfig . getX509HostnameVerifier ( ) ) . port ( sslConfig . getPort ( ) ) . sslSocketFactory ( sslConfig . getSSLSocketFactory ( ) ) ) ; }
Sets a certificate to be used for SSL authentication. See {@link java.lang.Class#getResource(String)}
for how to get a URL from a resource on the classpath.
<p>
Uses SSL settings defined in {@link SSLConfig}.
</p>

@param certURL  URL to a JKS keystore where the certificate is stored.
@param password The password for the keystore
@return The request io.restassured.specification
Sets a certificate to be used for SSL authentication . See { @link java . lang . Class#getResource ( String ) } for how to get a URL from a resource on the classpath . <p > Uses SSL settings defined in { @link SSLConfig } . < / p >