This is how I do it, I stole it from the examples.

X509 *pCert;

X509_gmtime_adj(X509_get_notBefore(pCert),0);   // valid from 
X509_gmtime_adj(X509_get_notAfter(pCert),(long)60*60*24*expiryYears*365);
//valid to

 
> How do i set the "Valid from" and/or "Valid to" parameters in the
> certificate?
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~
> Pablo Millet
> Red  Message
> Web Developer & Designer
> Mob.: 0706 - 762 556
> 
> www.redmessage.com
> ~~~~~~~~~~~~~~~~~~~~~~
begin:vcard 
n:Kong;Tat Sing
tel;fax:+44 (0)161 833 3636
tel;work:+44 (0)161 833 3777
x-mozilla-html:FALSE
url:www.consegna.co.uk
org:Consegna Advanced Technlogies Ltd
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Technical Architect
adr;quoted-printable:;;1st Floor=0D=0A30-32 Thomas Street=0D=0A;Manchester;;M4 1ER;
fn:Tat Sing Kong
end:vcard

Reply via email to