Thank you Dr. Henson. Got it. -----Original Message----- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: Thursday, October 04, 2012 12:22 PM To: openssl-users@openssl.org Subject: Re: how to extract O= and OU= from a subject cert
On Wed, Oct 03, 2012, mclellan, dave wrote: > We know how to extract the subject and issuer from a cert sent by a peer. > Can anyone point out where we get started to look into how to extract the > Organization and organizationalUnit attributes? > > It's not obvious from the API definitions and I've been searching the > openssl-users archive but I am not finding hits that clearly identify this. > Check out the manual pages for the X509_NAME functions in particular X509_NAME_get_index_by_NID. Then X509_NAME_ENTRY_get_data and possibly ASN1_STRING_to_UTF8. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org