EVP_RSA_gen
EVP_PKEY *write_pkey = EVP_RSA_gen(1024);
if (!TEST_ptr(pkey = EVP_RSA_gen(2048)))
ATF_REQUIRE(c->pkey = EVP_RSA_gen(2048));