@Override
    public void checkClientTrusted(X509Certificate[] x509Certificates, String s, SSLEngine sslEngine) throws CertificateException {
      // do nothing
    }
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