hold on! thanks a lot I managed to get it to 23:59:59. all i had to do was
change the value
strcpy(buf+6, "235959Z"); to  strcpy(buf+6, "155959Z");

thanks again, David Schwartz! You're a great help!!

On 7/16/07, David Schwartz <[EMAIL PROTECTED]> wrote:




I added the X509_gmtime_roundup(X509_get_notAfter(x)); at my
renewCertificate function. When I renewed the cert valid to for example, to
31/7/2007, the cert valid to will be strangely changed to '1/8/2007
7:59:59". May I know which part should I alter here?

There is nothing to change, as it is doing exactly what you wanted. The
certificate now expires at the end of the day. 1/8/2007 7:59:59 is probably
the last second of the day. You are probably looking at the time translated
into the time where you happen to be, rather than looking at the UTC/GMT
time.

Are you asking that the time be set to the last second of the day in the
timezone your computer happens to be in? That's essentially impossible
because times can be changed at the whim of governments. There is no
practical way to know what will be the last second of 1/8/2020 in San
Francisco. (Because things like daylight savings time can change.)

DS



Reply via email to