Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [Users] freeswan-certificate problem

From: sahil <sahil(at)elitecore.com>
Date: Wed Mar 31 2004 - 06:57:54 EST


That's strange,

so does it mean that when i give value as days=12346, openssl first tries to calculate today's date by taking number of seconds since Epoch (Jan 1, 1970) and then add number of (days*24*60*60)seconds to that variable.
i.e. int n= (No. of seconds since Epoch (Jan 1, 1970)) + (days*24*60*60)seconds
where n is date of getting validity over.

Then this is flaw,i mean openssl can't be used to generate certificate above Jan 18 2038 date.

Am i right???
what is solution.

thanx
regards

-----Original Message-----
From: Andreas Steffen [mailto:andreas.steffen@strongsec.net] Sent: Wednesday, March 31, 2004 5:06 PM
To: sahil
Cc: freeswan user
Subject: Re: [Users] freeswan-certificate problem

Ok, the largest positive integer a 32 bit signed int variable can represent is

    2^31 -1 = 2'147'483'647

Do you need help?X

On a Linux/Unix system dates are stored in elapsed seconds since Epoch (Jan 1, 1970).

2'147'483'647 seconds = 596'523 hours = 24'855 days

  • 68 years + 17 days

Jan 1 1970 + 68 years + 17 days = Jan 18 2038

Thus the limitation in openssl is not due to ASN.1 UTCTIME coding but to 32 bit integer arithmetic.

Regards

Andreas

sahil wrote:

> hi,
>
> But when i gave days=12346,


Andreas Steffen                   e-mail: andreas.steffen@strongsec.com
strongSec GmbH                    home:   
http://www.strongsec.com
Alter Zürichweg 20                phone:  +41 1 730 80 64
CH-8952 Schlieren (Switzerland) fax: +41 1 730 80 65
==========================================[strong internet security]===
Do you need more help?X

Content Security by MailMarshal



FreeS/WAN Users mailing list
users@lists.freeswan.org
https://mj2.freeswan.org/cgi-bin/mj_wwwusr Received on Wed Mar 31 07:10:31 2004

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:02:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library