Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-4043

Timing issue in CaRenewCACommandTest

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.2.7
    • Fix Version/s: EJBCA 6.2.8
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Testing

      Description

      The test CaRenewCACommandTest.test01renewCAwithSameKeys() checks if the new CA certificate's getNotAfter is after the old CA certificate's current getNotAfter.

      In the case where the CA is generated the same second as the renewal, this test will fail.

      Change:

      • Check that it is a different CA certificate (e.g. by checking the fingerprint of the certs)
      • Check that the getNotAfter is newer or the same

        Attachments

          Activity

            People

            Assignee:
            johan Johan Eklund
            Reporter:
            johan Johan Eklund
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: