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

PublicWeb check certificate status inly works with 8 octet cert serialNumber

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.0.0
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Sprint 21 Team Alice

      Description

      If you have issued certificate with the setting:

       

      ca.serialnumberoctetsize=16
      

      in cesecore.properties you can not use the function "Check Certificate Status" in public web it will always say "certificate can not be found".

      This is due to a strange line in CertificateFinderBean.lookupRevokedInfo, I guess this is realyl old legacy.

      serialNumber = ("0000000000000000" + serialNumber).substring(serialNumber.length()); // Pad with zeroes up to 16 chars

      Simply remove this line...

      The RA Web works though.

        Attachments

          Activity

            People

            • Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Mike Agrenius Kushner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m