"Key converted", "Key converted",
JOptionPane.INFORMATION_MESSAGE);
} else {
monitor.setNote("Creating generator");
SshKeyGenerator generator = new SshKeyGenerator();
monitor.setNote("Generating");
String username = System.getProperty("user.name");
generator.generateKeyPair(keygen.getType(),
keygen.getBits(), outputFile.getAbsolutePath(),
username, newPassphrase);
monitor.setNote("Complete");
JOptionPane.showMessageDialog(Main.this,
"Key generated to " + outputFile.getName(),