Extracting all extensions from a certificate

2007-05-16 Thread Christopher Kunz
Hi, how can I extract all extensions from a certificate into a STACK_OF(X509_EXTENSION)? For certificate requests, there is X509_REQ_get_extensions that returns this stack, but how is that done with an actual certificate? Regards, --ck

Re: Extracting all extensions from a certificate

2007-05-16 Thread Bruce Stephens
Christopher Kunz [EMAIL PROTECTED] writes: how can I extract all extensions from a certificate into a STACK_OF(X509_EXTENSION)? For certificate requests, there is X509_REQ_get_extensions that returns this stack, but how is that done with an actual certificate? X509_get_ext_count(),

Re: Extracting all extensions from a certificate

2007-05-16 Thread Christopher Kunz
Bruce Stephens schrieb: X509_get_ext_count(), X509_get_ext(), and the usual stack macros STACK_OF(X509_EXTENSION), sk_X509_EXTENSION_push() and so on, I guess. That does the trick. However, I'm stumped at how to convert an extension value back to a string. I call obj =

Re: Extracting all extensions from a certificate

2007-05-16 Thread Bruce Stephens
Christopher Kunz [EMAIL PROTECTED] writes: [...] Is there any up-to-date complete documentation available for the full function set of OpenSSL? For some of the stuff, like ASN.1 manipulation, I can't even find anything on Google... Not that I know of. I use Source Navigator (or

Re: Extracting all extensions from a certificate

2007-05-16 Thread Dr. Stephen Henson
On Wed, May 16, 2007, Christopher Kunz wrote: Bruce Stephens schrieb: X509_get_ext_count(), X509_get_ext(), and the usual stack macros STACK_OF(X509_EXTENSION), sk_X509_EXTENSION_push() and so on, I guess. That does the trick. However, I'm stumped at how to convert an extension