keytool_cmd.setArguments(new String[] { "-genkey", "-alias", key_alias, "-dname", domain_name, "-keystore",
keystore.getAbsolutePath(), "-storepass", keystore_password, "-keypass", key_password, "-keyalg",
key_algorithm, "-validity", Integer.toString(validity) });
StartCommandResponse keytool_results = new ProcessExec().execute(keytool_cmd);
if (!keytool_results.isSuccessful() || !keystore.exists()) {
throw new RuntimeException(LOG.getMsgString(CommI18NResourceKeys.KEYSTORE_CREATION_FAILURE,
keytool_results, Arrays.asList(keytool_cmd.getArguments()).toString()), keytool_results.getException());
}