I'm trying to include SSL certificate files (.crt and .key) in HTTPS request call. But I'm getting handshake failure error while doing so. Here is my code to include the file in Java. The client expects SSL version should be TLSv1.2.

```
public static void main(String[] args){
       SSLConnectionSocketFactory socketFactory = null;
    String uri = "https://myclient.com";
    try {
      KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
      keyStore.load(
          new FileInputStream(new File(
              "certificate.p12")),
          keyStorePassword.toCharArray());

      socketFactory = new SSLConnectionSocketFactory(
          new SSLContextBuilder().loadTrustMaterial(null, new TrustSelfSignedStrategy())
              .loadKeyMaterial(keyStore, keyStorePassword.toCharArray()).build(),
          NoopHostnameVerifier.INSTANCE);
    } catch (Exception e) {
      // TODO: handle exception
      e.printStackTrace();
    }

```