private Key importRsaKey(String message, KeyType keytype) {
		Console console = System.console();
		String input;
		while (true) {
			try {
				System.out.println(message);
				input = console.readLine();
				switch (keytype) {
				case PRIVATE:
					return Importer.importRsaPrivateKey(input);
				case PUBLIC:
					return Importer.importRsaPublicKey(input);
				}
			} catch (IOException e) {
				System.out.println("Invalid file location. Try again y/n?");
				input = console.readLine();
				if (!"y".equals(input.toLowerCase())) {
					return null;
				}
			} catch (InvalidKeySpecException e) {
				System.out.println("Invalid key file");
			}
		}
	}