private boolean isCertExists() {

    Map<String, String> configsMap = configs.getConfigsMap();
    String srvrKstrDir = configsMap.get(Configuration.SRVR_KSTR_DIR.getKey());
    String srvrCrtName = configsMap.get(Configuration.SRVR_CRT_NAME.getKey());
    File certFile = new File(srvrKstrDir + File.separator + srvrCrtName);
    LOG.debug("srvrKstrDir = {}", srvrKstrDir);
    LOG.debug("srvrCrtName = {}", srvrCrtName);
    LOG.debug("certFile = {}", certFile.getAbsolutePath());

    return certFile.exists();
  }
Checks root certificate state.
@return "true" if certificate exists
ambari-server/src/main/java/org/apache/ambari/server/security/CertificateManager.java