Fixed OpenSSL version of mailstream_ssl_get_certificate().