Hi Steve, Thank you for the quick response! There are indeed lots of options on the output format. Now if I just want to extract the common field string, do I search for "CN=" prefix or is there a better way?
Thank you once again, -Areg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dr. Stephen Henson Sent: Wednesday, August 11, 2004 12:07 PM To: [EMAIL PROTECTED] Subject: Re: Extracting DN from an X.509 cert BLOB On Wed, Aug 11, 2004, Areg Alimian wrote: > Hi all! > > > > Is there a simple way to convert the certificate name blob to a null > terminated char string using OpenSSL? > If you mean a human readable text string then calling X509_NAME_print_ex() to a memory BIO is the most flexible solution. There are *lots* of options because the string can be formatted in many different ways depending on the application, preferences or artistic tastes :-) Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
