Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8279254

PKCS9Attribute SigningTime always encoded in UTFTime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 22
    • None
    • security-libs
    • 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.

            bperez Ben Perez
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: