Project

General

Profile

Actions

Bug #4312

closed

ValidityPeriod of CertificateV2 cannot be set using certificateV2.getValidityPeriod().setPeriod()

Added by Haitao Zhang over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

If I understand correctly, ValidityPeriod of CertificateV2 is supposed to be set using

certificateV2.getValidityPeriod().setPeriod(now, now + 10 * 24 * 3600 * 1000.0);

However, it doesn't change ValidityPeriod of CertificateV2. If we use

System.out.println(certificateV2.toString());

to print out a cert, ValidityPeriod information is always:

Validity:
   NotBefore: 2922789940817T071255
   NotAfter: 2922690551202T164704

Due to the same reason, if we use

keyChain.createIdentityV2();

to create a V2 identity, the default cert always has ValidityPeriod

Validity:
   NotBefore: 2922789940817T071255
   NotAfter: 2922690551202T164704
Actions

Also available in: Atom PDF