@Override
    public X509Certificate[] getAcceptedIssuers() {
      return new X509Certificate[0];
    }
LenientTrustManager is a TrustManager that accepts all certificates without validating the
chain of trust or hostname.
ambari-server/src/main/java/org/apache/ambari/server/security/InternalSSLSocketFactory.java