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 khunteta.pun...@gmail.comwrote: 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.

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 khunteta.pun...@gmail.comwrote: 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-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-26 Thread Saurabh Pandya
On 7/26/12, Puneet Khunteta khunteta.pun...@gmail.com 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 :

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 er.saurabhpan...@gmail.comwrote: On 7/26/12, Puneet Khunteta khunteta.pun...@gmail.com wrote: Hello Sukalp, I have tried to use the code snippet provided by use . I am able to create the ASN_object and get

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 st...@openssl.orgwrote: On Wed, Jul 25, 2012, Puneet Khunteta wrote: Hello, I am an user of

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 ==

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 any

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.