if (args.length != 5) {
System.out.println(
"Usage: StrongClient host keystore storepass alias keypass");
return;
}
String host = args[0];
String keystorefile = args[1];
String storepass = args[2];
String alias = args[3];
String keypass = args[4];
int port = 7999;
Socket s = new Socket(host, port);
StrongClient client = new StrongClient();
KeyStore keystore = KeyStore.getInstance();
keystore.load(new FileInputStream(keystorefile), storepass);
PrivateKey key = keystore.getPrivateKey(alias, keypass);
client.sendAuthentication(alias, key, s.getOutputStream());
s.close();