X509 Cert dates

2005-05-25 Thread Pj
Hi All, How can I print localised, human readable certificate dates into a null terminated string buffer? I wish to present the cert dates to the user as well as the fact that the dates are valid or invalid. Can someone point me to a good source for X509 manipulation? At the moment my

Re: X509 Cert dates

2005-05-25 Thread Tan Eng Ten
Hi, U could try: BIO *bio = BIO_new_fp(stdout, BIO_NOCLOSE); ASN1_TIME_print(bio, X509_get_notBefore(cert)); BIO_free(bio); Tell me if it works. Pj wrote: Hi All, How can I print localised, human readable certificate dates into a null terminated string buffer?

RE: X509 Cert dates

2005-05-25 Thread Pj
); // -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tan Eng Ten Sent: Thursday, 26 May 2005 10:30 AM To: openssl-users@openssl.org Subject: Re: X509 Cert dates Hi, U could try: BIO *bio = BIO_new_fp(stdout, BIO_NOCLOSE); ASN1_TIME_print(bio

Re: X509 Cert dates

2005-05-25 Thread Tan Eng Ten
@openssl.org Subject: Re: X509 Cert dates Hi, U could try: BIO *bio = BIO_new_fp(stdout, BIO_NOCLOSE); ASN1_TIME_print(bio, X509_get_notBefore(cert)); BIO_free(bio); Tell me if it works. Pj wrote: Hi All, How can I print localised, human readable certificate dates

RE: X509 Cert dates

2005-05-25 Thread Pj
Thanks guys, you rock! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tan Eng Ten Sent: Thursday, 26 May 2005 12:13 PM To: openssl-users@openssl.org Subject: Re: X509 Cert dates Hi Pj, U could use memory BIO instead - BIO_new(BIO_s_mem()). Data written