public static void generateAuthKeyPair(boolean overwrite) {
		if ((authPubKey == null && authPrivKey == null) || overwrite == true) {
			try {
				KeyPairGenerator keyGen;
				keyGen = KeyPairGenerator.getInstance("RSA");

				keyGen.initialize(1024);

				KeyPair keys = keyGen.generateKeyPair();

				authPubKey = keys.getPublic();
				authPrivKey = keys.getPrivate();
			} catch (NoSuchAlgorithmException e) {
				// Should not happen
				e.printStackTrace();
			}
		}
	}