X509_REQ_check_private_key
if (selfsign && !X509_REQ_check_private_key(req, pkey)) {
int X509_REQ_check_private_key(X509_REQ *x509,EVP_PKEY *pkey);