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

Serial Numbers in Admin Role Members that start with 0 do not have 0 when added

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When you view a serial number of a certificate in EJBCA in hex it show up as 04E1ADD64A53D33B9BAE42CE0A001052FBB79343.  When you add that same serial number to a role the 0 is removed.

      Easily confirmed by the GUI and audit log:

      16:51:10,682 INFO [org.cesecore.audit.impl.log4j.Log4jDevice] (default task-7) 2020-05-28 16:51:10-04:00;ROLE_ACCESS_USER_ADDITION;SUCCESS;ROLES;CORE;CN=27May2020 Skyrim Super Administrator,OU=Administrators,O=Solitude,C=US;;;;msg=Added administrator aspect(s) 4E1ADD64A53D33B9BAE42CE0A001052FBB79343 to role inTune-Connector.;id=330617768;tokenType=CertificateAuthenticationToken;tokenIssuerId=966011820;tokenMatchKey=WITH_SERIALNUMBER (11);tokenMatchOperator=TYPE_EQUALCASEINS (1001);tokenMatchValue=4E1ADD64A53D33B9BAE42CE0A001052FBB79343;roleId=376584717;nameSpace=;roleName=inTune-Connector;description=04E1ADD64A53D33B9BAE42CE0A001052FBB79343

      The serial number should keep the 0 on the front to keep the display consistent.  It would also simplify comparing the serial number of role members with the serial number in the certificate.  Otherwise you have to convert to base 16 and then figure out how to make Ansible play nice.  

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              svenr Sven Rajala
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: