Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-27 Thread Dr. Stephen Henson
On Fri, Jul 27, 2012, Puneet Khunteta wrote: > any Update ? > > regards, > Puneet > > On Thu, Jul 26, 2012 at 4:27 PM, Puneet Khunteta > wrote: > > > Hello Stephen, > > > > On using the suggestion provided by you , got the following output snippet > > > > > > It shows extusage->data Empty. > >

Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-27 Thread Puneet Khunteta
any Update ? regards, Puneet On Thu, Jul 26, 2012 at 4:27 PM, Puneet Khunteta wrote: > Hello Stephen, > > On using the suggestion provided by you , got the following output snippet > > > It shows extusage->data Empty. > > Regards, > Puneet > > On Wed, Jul 25, 2012 at 4:01 PM, Dr. Stephen Henson

Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-26 Thread Puneet Khunteta
Hello Stephen, On using the suggestion provided by you , got the following output snippet It shows extusage->data Empty. Regards, Puneet On Wed, Jul 25, 2012 at 4:01 PM, Dr. Stephen Henson wrote: > On Wed, Jul 25, 2012, Puneet Khunteta wrote: > > > Hello, > > > > I am an user of openssl libra

Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-26 Thread Puneet Khunteta
Same Status !! Regards, Puneet On Thu, Jul 26, 2012 at 2:49 PM, Saurabh Pandya wrote: > On 7/26/12, Puneet Khunteta wrote: > > Hello Sukalp, > > > > I have tried to use the code snippet provided by use . I am able to > create > > the ASN_object and get the data also.but the data is not in readab

Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-26 Thread Saurabh Pandya
On 7/26/12, Puneet Khunteta wrote: > Hello Sukalp, > > I have tried to use the code snippet provided by use . I am able to create > the ASN_object and get the data also.but the data is not in readable form. > > I use X509 instead of X509V3. > > Here is the code that i have used : > > *Ret = X509_g

Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-26 Thread Puneet Khunteta
Hello Sukalp, I have tried to use the code snippet provided by use . I am able to create the ASN_object and get the data also.but the data is not in readable form. I use X509 instead of X509V3. Here is the code that i have used : *Ret = X509_get_ext_by_NID(cert, field_NID, 0); if ((Ret

Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-25 Thread Dr. Stephen Henson
On Wed, Jul 25, 2012, Puneet Khunteta wrote: > Hello, > > I am an user of openssl library. > I am seeking for a method to get the "Extended Key Usage" field from the > X509 certificate . > I will be grateful if you can provide me a sample code in c. > You can retrieve a structure representing a

Re: X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-25 Thread Sukalp Bhople
Hi, You will have to go through Openssl source code. Have a look at following files: 1. x509_v3.c (around line 74), You will find the following method: int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, int lastpos) { ASN1_OBJECT *obj; obj=OBJ_nid2obj(nid); if (obj == NU

X509 Certificate : Need help to retrieve " Extended Key Usage" filed from the certificate

2012-07-24 Thread Puneet Khunteta
Hello, I am an user of openssl library. I am seeking for a method to get the "Extended Key Usage" field from the X509 certificate . I will be grateful if you can provide me a sample code in c. Thanks Puneet K.