public static KeyPair generateRSAKeyPair(String path) throws GeneralSecurityException, IOException {
  		KeyPairGenerator gen = KeyPairGenerator.getInstance(ALGORITHM);
  		gen.initialize(KEY_SIZE);
  		KeyPair newKeys = gen.generateKeyPair();
    	saveKeyPair(path, newKeys);
    	return newKeys;
  	}