load x509 certificate from base 64 string into X509 structure

2005-11-15 Thread Isaac B
= d2i_X509_bio(cert, null);   but now that I have the X509 certificate in PEM format inside a XML node I was wondering how could I load it into x509 withouth having to write a temp file.   Thanks in advance.   Isaac B Yahoo! FareChase - Search multiple travel sites in one click.

x509_get_serialNumber can't get me the serial number in base 64

2005-10-20 Thread Isaac B
Hi, I have the following code   char serial[300]; i2a_ASN1_INTEGER(bio, X509_get_serialNumber(x509)); n = BIO_read(bio, serial, min(BIO_pending(bio), 299)); n = max(n, 0); serial[n] = 0; BIO_flush(bio);   And I get the following result inside serial   3030303031303030303030303030303030313134   So