mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
18.48.2007 787b6469989dbb2326833b24b6d82fbc90cc3f17
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/CliApplicationHelper.java
@@ -798,8 +798,15 @@
      ApplicationTrustManager trustManager)
  {
    boolean returnValue = false;
    ApplicationTrustManager.Cause cause =
      usedTrustManager.getLastRefusedCause();
    ApplicationTrustManager.Cause cause;
    if (usedTrustManager != null)
    {
      cause = usedTrustManager.getLastRefusedCause();
    }
    else
    {
      cause = null;
    }
    LOG.log(Level.INFO, "Certificate exception cause: "+cause);
    UserDataCertificateException.Type excType = null;
@@ -948,7 +955,10 @@
      if ((chain != null) && (authType != null) && (host != null))
      {
        LOG.log(Level.INFO, "Accepting certificate presented by host "+host);
        trustManager.acceptCertificate(chain, authType, host);
        if (trustManager != null)
        {
          trustManager.acceptCertificate(chain, authType, host);
        }
        accepted = true;
      }
      else