-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b04
-
Verified
According to https://datatracker.ietf.org/doc/html/rfc2630#section-11.3,
Dates between 1 January 1950 and 31 December 2049 (inclusive) must be
encoded as UTCTime. Any dates with year values before 1950 or after
2049 must be encoded as GeneralizedTime.
In fact, all other time encoding in X.509 follows the similar style. We should create a single argument `DerOutputStream::putTime` method to deal with this.
Dates between 1 January 1950 and 31 December 2049 (inclusive) must be
encoded as UTCTime. Any dates with year values before 1950 or after
2049 must be encoded as GeneralizedTime.
In fact, all other time encoding in X.509 follows the similar style. We should create a single argument `DerOutputStream::putTime` method to deal with this.