public static void writePemStringToFile(File file,String pemDataToWrite){
  try {
    FileUtils.write(file,pemDataToWrite);
  }
 catch (  IOException e) {
    throw new ExportException("Unable to write PEM string to file: " + file.getName(),e);
  }
}

public static void writePemStringToFile ( File file , String pemDataToWrite ) { try { FileUtils . write ( file , pemDataToWrite ) ; } catch ( IOException e ) { throw new ExportException ( "Unable to write PEM string to file: " + file . getName ( ) , e ) ; } }
convenience method to write pem data to a file . the file will be encoded in the us_ascii character set .
