public static String getCreatePrivateCommand(PrivateCreateParam param)
			throws Exception {
		if (param == null || param.getKeypass() == null
				|| param.getKeypass().trim().equals("")
				|| param.getStore_pass() == null
				|| param.getStore_pass().trim().equals("")
				|| param.getDname() == null
				|| param.getDname().trim().equals(""))
			throw new Exception(
					"param or param.keypass or param.storepass or param.dname is not null or \"\"");
		StringBuffer cmd = new StringBuffer();
		cmd.append("keytool -genkey -v -alias " + param.getAlias()
				+ "  -keysize "
				+ param.getKeysize() + " -validity " + param.getValidity()
				+ " ");
		cmd.append("-keystore " + param.getPrivate_store() + " ");
		cmd.append("-keypass " + param.getKeypass() + " -storepass "
				+ param.getStore_pass() + " ");
		cmd.append("-dname " + param.getDname() + "");
		return cmd.toString();
	}