Program: 37605
Project: 37605
Buggy source:
/** 
 * This method creates a certificate for given password.
 * @param certPath location of certificate file
 * @param pfxPath location of pfx file
 * @param alias User alias
 * @param password alias password
 * @param cnName domain name
 * @throws Exception exceptions from the creation
 */
public static void createCertificate(String certPath,String pfxPath,String alias,String password,String cnName) throws Exception {
  if (new File(pfxPath).exists()) {
    return;
  }
  String validityInDays="String_Node_Str";
  String keyAlg="String_Node_Str";
  String sigAlg="String_Node_Str";
  String keySize="String_Node_Str";
  String storeType="String_Node_Str";
  String command="String_Node_Str";
  String jdkPath=System.getProperty("String_Node_Str");
  if (jdkPath != null && !jdkPath.isEmpty()) {
    jdkPath=jdkPath.concat("String_Node_Str");
  }
  if (new File(jdkPath).isDirectory()) {
    command=String.format("String_Node_Str",jdkPath,File.separator,command);
  }
  String[] commandArgs={command,"String_Node_Str","String_Node_Str",alias,"String_Node_Str",pfxPath,"String_Node_Str",password,"String_Node_Str",validityInDays,"String_Node_Str",keyAlg,"String_Node_Str",sigAlg,"String_Node_Str",keySize,"String_Node_Str",storeType,"String_Node_Str","String_Node_Str" + cnName,"String_Node_Str","String_Node_Str"};
  Utils.cmdInvocation(commandArgs,false);
  File pfxFile=new File(pfxPath);
  if (pfxFile.exists()) {
    String[] certCommandArgs={command,"String_Node_Str","String_Node_Str",alias,"String_Node_Str",storeType,"String_Node_Str",pfxPath,"String_Node_Str",password,"String_Node_Str","String_Node_Str",certPath};
    Utils.cmdInvocation(certCommandArgs,true);
    File cerFile=new File(pfxPath);
    if (!cerFile.exists()) {
      throw new IOException("String_Node_Str" + StringUtils.join("String_Node_Str",certCommandArgs));
    }
  }
 else {
    throw new IOException("String_Node_Str" + StringUtils.join("String_Node_Str",commandArgs));
  }
}

Fixed version (ground truth):
/** 
 * This method creates a certificate for given password.
 * @param certPath location of certificate file
 * @param pfxPath location of pfx file
 * @param alias User alias
 * @param password alias password
 * @param cnName domain name
 * @throws Exception exceptions from the creation
 */
public static void createCertificate(String certPath,String pfxPath,String alias,String password,String cnName) throws Exception {
  if (new File(pfxPath).exists()) {
    return;
  }
  String validityInDays="String_Node_Str";
  String keyAlg="String_Node_Str";
  String sigAlg="String_Node_Str";
  String keySize="String_Node_Str";
  String storeType="String_Node_Str";
  String command="String_Node_Str";
  String jdkPath=System.getProperty("String_Node_Str");
  if (jdkPath != null && !jdkPath.isEmpty()) {
    jdkPath=jdkPath.concat("String_Node_Str");
    if (new File(jdkPath).isDirectory()) {
      command=String.format("String_Node_Str",jdkPath,File.separator,command);
    }
  }
 else {
    return;
  }
  String[] commandArgs={command,"String_Node_Str","String_Node_Str",alias,"String_Node_Str",pfxPath,"String_Node_Str",password,"String_Node_Str",validityInDays,"String_Node_Str",keyAlg,"String_Node_Str",sigAlg,"String_Node_Str",keySize,"String_Node_Str",storeType,"String_Node_Str","String_Node_Str" + cnName,"String_Node_Str","String_Node_Str"};
  Utils.cmdInvocation(commandArgs,false);
  File pfxFile=new File(pfxPath);
  if (pfxFile.exists()) {
    String[] certCommandArgs={command,"String_Node_Str","String_Node_Str",alias,"String_Node_Str",storeType,"String_Node_Str",pfxPath,"String_Node_Str",password,"String_Node_Str","String_Node_Str",certPath};
    Utils.cmdInvocation(certCommandArgs,true);
    File cerFile=new File(pfxPath);
    if (!cerFile.exists()) {
      throw new IOException("String_Node_Str" + StringUtils.join("String_Node_Str",certCommandArgs));
    }
  }
 else {
    throw new IOException("String_Node_Str" + StringUtils.join("String_Node_Str",commandArgs));
  }
}