static SSLContext ignoreSSLCertificate() {
    try {
      // Install the all-trusting trust manager
      SSLContext sc = SSLContext.getInstance("TLS");
      sc.init(null, trustAllCerts, new java.security.SecureRandom());

      KeyStore ks =
          Preconditions.checkStateNotNull(KeyStore.getInstance("JKS"), "Keystore 'JKS' not found");
      ClassLoader classLoader =
          Preconditions.checkStateNotNull(
              SSLUtils.class.getClassLoader(), "SSLUtil classloader is null - boot classloader?");
      InputStream inputStream = classLoader.getResourceAsStream("resources/.keystore");
      if (inputStream != null) {
        LOG.info("Found keystore in classpath 'resources/.keystore'. Loading...");
      } else {
        LOG.info(
            "Unable to find keystore under 'resources/.keystore' in the classpath. "
                + "Continuing with an empty keystore.");
      }
      ks.load(inputStream, "changeit".toCharArray());
      KeyManagerFactory kmf =
          KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
      kmf.init(ks, "changeit".toCharArray());
      SSLContext ctx = SSLContext.getInstance("TLS");
      ctx.init(kmf.getKeyManagers(), trustAllCerts, null);
      SSLContext.setDefault(ctx);
      return ctx;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
@Test
  public void testIgnoreSSLCertificate() {
    // smoke test
    SSLUtils.ignoreSSLCertificate();
  }