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

Present Certificate Serial Numbers uniformly as hex values

    Details

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

      Description

      Background

      We currently have an array of methods for presenting certificate serial numbers. SN's are canonically stored as integer values (according to the RFC), but are mostly written in hex and occasionally presented in decimal format. 

      In regards to serial numbers, RFC5280 states that

      RFC5280

       

      Conforming CAs MUST NOT use serialNumber values longer than 20 octets. 

       

       

      Where Want to Be

      Certificate serial numbers should be presented in a uniform method all across the CA and RA UIs. 

      What We Need To Do

      All serial numbers should be presented and called on as hex values. JAVA has built functionality for presenting HEX values in a in uniform format:

       

      String.format("0x%020X", decimalNumber)
      

       

      which will automatically prefix all SN's with the hex prefix and pad all SNs to be exactly 20 octets long. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mikek Mike Agrenius Kushner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: