Hi everebody,

I´m new with OpenSSL and am having some trouble ...
I´m trying to print the endDate of a certificate,
using the ASN1_TIME_print function but nothing
happens.

Here´s an excerpt from the code:

FILE *file;
BIO *hbio;
X509 *cert;

hbio = BIO_new_file(file, "r");
cert = PEM_read_bio_X509(hbio, NULL, NULL, NULL);
ASN1_TIME_print(hbio, X509_get_notAfter(cert));

I also used the UTCTIME function, but again nothing
happened...

The function that prints all the certificate works
just fine, but I only need the endDate!!!

Could someone PLEASE help me?!?

Thanks...
Marcos

=====



        
        
                
_______________________________________________________
Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita diversão. Instale agora!
http://br.download.yahoo.com/messenger/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to