RSAPrivateKey to evp_pkey utility method

Tidying this up because it intersects with some wok on key serialisation I'm doing.