X509 info

2006-03-13 Thread vipin rathor
hi all,     I want to develop a small utility in C to show all information about the X509 certificate file in a structured comprehensive(as displayed by browsers like IE). i'm working on SLES 9. so please help me out     one more thing, i know the routines like X509_get_subject_name() and X50

X509 more info

2006-03-15 Thread vipin rathor
hi all,   thanx to Dr. Stephen Henson, michael Dorrian,Bernhard Froehlich for their valueble responses   yes Steve, u got it right that the information i want to print is everything about a certificate that comprises of things such as Version, Serial No., Sign. Algorithm, Issuer, Valid from,

X509 cert time

2006-03-15 Thread vipin rathor
hi all,    now i'm able to get the certificate timing info. by using the call X509_get_notAfter() and X509_get_notBefore()but they are returning the values in integer type( in my case, both return 13 and 13)   so anybody can help me out to get the timing info. in proper date format.   Thank

RE: X509 cert time

2006-03-16 Thread vipin rathor
hi DS, here is the code snippet i'm using:   X509 *cert; FILE fp; fp=fopen("cacert.der","r"); /* error check*/ cert=d2i_X509_fp(fp,NULL); /* error check*/ printf("Valid From : %d",X509_get_notBefore(cert));  /*gives 13 and when printed using %s, it gives segmentation fault*/     

X509 cert time - i got it

2006-03-16 Thread vipin rathor
hi DS and all,    i was just searching the mail archive and fortunately i got the conversation between "Tan Eng Tan" and "Pj" dated almost a year back. There is a call named ASN1_TIME_print(), using this u can print time in GMT format.    i guess i've answered myself   Thank u all, -Vipin

thanx Stefan Vatev...

2006-03-16 Thread vipin rathor
thank u very much Stefani got this lately though.. Yahoo! Mail Use Photomail to share photos without annoying attachments.

ASN1_STRING

2006-03-16 Thread vipin rathor
hi all,   can somebody give me the complete struct. of ASN1_STRING   Thanx in advance... -Vipin Yahoo! Travel Find great deals to the top 10 hottest destinations!

X509_digest() help

2006-03-20 Thread vipin rathor
hi all,     i need to fetch the thumbprint of the X509 cert. and for this i'm using X509_digest(). but it is throwing a segmentation fault. any idea how to fix this.   this is the code i'm using...   void print_thubprint(X509 *cert) {   const EVP_MD *md=NULL;   unsigned char *buf=NULL;

BIO Vs non-BIO

2006-03-27 Thread vipin rathor
hi people,   can someone tell me that what is the difference between using BIO and non-BIO calls??? and also, what r the situations that justifies the usage of these calls???   Thanks in advance,  "Most people are only alive because it is illegal toshoot them." - rathor vipin New Yahoo! Mess