On Tue, Jun 08, 2010, Christian Hohnstaedt wrote:
> On Mon, Jun 07, 2010 at 08:02:22PM -0500, Dallas Clement wrote:
> > Hi All,
> >
> > I am trying to crack open a certificate and print out the start and
> > expire dates to a debug log message.
>
> Just for printing I suggest:
>
> int ASN1_TI
On Mon, Jun 07, 2010 at 08:02:22PM -0500, Dallas Clement wrote:
> Hi All,
>
> I am trying to crack open a certificate and print out the start and
> expire dates to a debug log message.
Just for printing I suggest:
int ASN1_TIME_print(BIO *bp, const ASN1_TIME *tm)
Cheers
Christian
___
Hey,
I'm not extracting the start or end date but the domain name maybe this piece
of code could help :
I'm extracting the certificate from a PKCS#7 object but if you already have the
X509 it shouldn't be a problem.
I think you should take a look at X509_NAME_get_index_by_NID in de second if.
X
Hi All,
I am trying to crack open a certificate and print out the start and
expire dates to a debug log message.
I found these two nifty functions X509_get_notBefore() and
X509_get_notAfter() which return a pointer to a ASN1_TIME struct.
I'm not sure where to go from here. I would like to be ab