Fix RSA key generation