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

GUID with dash '-' in SAN field gives error with stacktrace

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: EJBCA 6.15.2.5, EJBCA 7.3.1.1
    • Fix Version/s: None
    • Component/s: CA GUI, PKI core
    • Labels:
    • Issue discovered during:
      Community

      Description

      When adding a new end-entity with a GUID in SAN field, the form break with stacktrace, if the GUID is input with dash '-'.

      It's compliance with standard that the GUID is encoded only with octet according to ASN.1.

      But, this GUID must be displayed with dash '-', cf. RFC 4122 (https://tools.ietf.org/html/rfc4122).

      In short example:

      • it’s KO: 3368702f-0500-4101-8e8e-9ae81a7ae79f
      • it’s OK: 3368702f050041018e8e9ae81a7ae79f

      My proposal to fix.

      In input field:

      • accept GUID with dash [and remove these dashes to encoding it into SAN]
      • accept GUID without dash, for back-compatibility

      In output field (e.g. when read from database to display it):

      • write GUID (e.g. onto screen) with dash

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              dcarella David Carella
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: