Generates a new RSA private key and returns it as a PEM string.
The key includes all parameters needed for both encryption and signing. Extract the corresponding public key with getPublicPem.
local priv = rsa.generateKey(2048)
local pub = rsa.getPublicPem(priv)