public static String getOpenSslCommandResult(String command, int exitCode) {
    return new StringBuilder().append("Command ").append(hideOpenSslPassword(command)).append(" was finished with exit code: ")
        .append(exitCode).append(" - ").append(getOpenSslExitCodeDescription(exitCode)).toString();
  }
Logs OpenSsl command exit code with description
ambari-server/src/main/java/org/apache/ambari/server/utils/ShellCommandUtil.java