SSL_use_certificate
int SSL_use_certificate(SSL *ssl, X509 *x);
if (!SSL_use_certificate(s, x509) ||
ret = SSL_use_certificate(ssl, x);