Project

General

Profile

Actions

Bug #4476

closed

Wrong ValidityPeriod.NotAfter in certificate expiring after year 2038

Added by Junxiao Shi about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Urgent
Category:
Security
Target version:
Start date:
01/25/2018
Due date:
% Done:

100%

Estimated time:

Description

In test case ndn-cxx.Tests.Security.V2.TestKeyChain.SelfSignedCertValidity:

[Error] - check cert.isValid() failed
 == [File] - ../tests/unit-tests/security/v2/key-chain.t.cpp
 == [Line] - 398

[Error] - check cert.isValid(time::system_clock::now() + 10 * 365_days) failed
 == [File] - ../tests/unit-tests/security/v2/key-chain.t.cpp
 == [Line] - 399

[Error] - check cert.getValidityPeriod().getPeriod().second > time::system_clock::now() + 10 * 365_days failed [-2147401558000000000 nanoseconds since Jan 1, 1970 <= 1832205738150935238 nanoseconds since Jan 1, 1970]
 == [File] - ../tests/unit-tests/security/v2/key-chain.t.cpp
 == [Line] - 400

Related issues 2 (0 open2 closed)

Related to NLSR - Bug #4473: Running into year 2038 problem as certificate's validity period is hard coded to 20 yearsClosedAshlesh Gawande01/24/2018

Actions
Related to ndn-cxx - Bug #4478: time::fromIsoString doesn't decode large datesClosedAlex Afanasyev01/25/2018

Actions
Actions

Also available in: Atom PDF