final String dn = CertTools.stringToBCDNString(StringTools.strip(args[6]));
final int validity = Integer.parseInt(args[7]);
HardCATokenInfo catokeninfo = new HardCATokenInfo();
byte keyStoreID[];{
KeyStoreContainer ksc = KeyStoreContainerFactory.getInstance(args[4],args[2], args[3], args.length>8 ? args[8] : null, null, null);
ksc.generate("2048", DEFAULT_KEY);
ksc.generate("2048", SIGN_KEY);
keyStoreID = ksc.storeKeyStore();
catokeninfo.setAuthenticationCode(new String(ksc.getPassPhraseGetSetEntry()));
}
getLogger().info("Initializing CA");