Hi, I use the code below to get the subject from a certificate. Everything works well until I get a revoked certificate afterwhich I am unable to initialse the X509 Cert. Is this normal and if so what can I do to get the subject in a revoked case? Or should I be using other functions for getting the subject? /colin <code snippet> X509 *Cert = X509_new();; BIO *certBio = BIO_new(BIO_s_mem()); int result = BIO_write(certBio, Certificate->b_data, Certificate->b_size); d2i_X509_bio(certBio, &Cert); if (Cert != NULL) { char *str = X509_NAME_oneline(X509_get_subject_name(Cert),0,0); } </code snippet> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]