PKCS9Attribute SigningTime always encoded in UTFTime

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 22
    • Affects Version/s: None
    • Component/s: 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.

            Assignee:
            Ben Perez
            Reporter:
            Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: