i have an application that creates it's own certificates (built with
0.9.6j), i call X509_new() and then setup various fields
(serial number, issuer name, etc).  then i try to set the validity
period to 60 days by doing something like:
X509_gmtime_adj(X509_get_notBefore(Cert), 0);
X509_gmtime_adj(X509_get_notAfter(Cert), 60*60*24*60);

but the certificate always gets created with validity from
Jan 1 1970, to Jan 31 1970 regardless of what value i put
in the X509_gmtime_adj call.  so then i tried to set the
date using:
ASN1_UTCTIME_set_string(X509_get_notBefore(Cert), "030902100000");
ASN1_UTCTIME_set_string(X509_get_notAefore(Cert), "031102100000");

but the validity still stays Jan 1 1970 - Jan 31 1970.  any ideas
how to force the date to change?  thanks.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to