d2i_X509_bio
x = d2i_X509_bio(cert, NULL);
x = d2i_X509_bio(in, NULL);
X509 *d2i_X509_bio(BIO *bp,X509 **x509);