|
|||||||||||
|
Re: [Users] freeswan-certificate problem
From: sahil <sahil(at)elitecore.com>
Date: Wed Mar 31 2004 - 06:57:54 EST
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.
Then this is flaw,i mean openssl can't be used to generate certificate above Jan 18 2038 date.
Am i right???
thanx
-----Original Message-----
Ok, the largest positive integer a 32 bit signed int variable can represent is 2^31 -1 = 2'147'483'647 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
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,
Andreas Steffen e-mail: andreas.steffen@strongsec.com strongSec GmbH home: http://www.strongsec.com Alter Zürichweg 20 phone: +41 1 730 80 64CH-8952 Schlieren (Switzerland) fax: +41 1 730 80 65 ==========================================[strong internet security]=== 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 |
||||||||||
|
|||||||||||