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

Allow serial numbers to be entered with colon or spaces also

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.4.0
    • Component/s: CA GUI, CLI
    • Labels:
    • Provenance:
      Internal Delivery
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Team Bob - 2020 w7, EJBCA Team Bob -2020 w10

      Description

      When you create a new admin certificate or peer connector certificate, and you paste in the certificate serial number in the GUI, you have to manually strip the colons or spaces from the serial number.

      It affects these pages:

      • Role Members in Admin GUI
      • Role Members in RA GU
      • Internal Key Bindings page (trusted certificates)

      It also affects the following CLI commands. We should make it work if 12345ABCDEF has colons or spaces in it:

      • bin/ejbca.sh keybind modify --name NameOfKeybindingHere --addtrust "NameOfCA;12345ABCDEF"
      • bin/ejbca.sh roles addrolemember --role "Super Administrator Role" --caname "ManagementCA" --with WITH_SERIALNUMBER --value "12345ABCDEF"

      EJBCA should automatically remove the colons and spaces, so the user does not have to do that.
      Additionally, serial numbers can contain a "0x" prefix (to indicate hexadecimal). If present, that should be removed.

      Note: In the Role Members page, there are other match types than certificate serial numbers. Those should not be stripped from colons / spaces.

        Attachments

        1. ECA-8839-5.diff
          10 kB
        2. ECA-8839-4.diff
          10 kB
        3. ECA-8839-3.diff
          9 kB
        4. ECA-8839.diff
          2 kB

          Issue Links

            Activity

              People

              Assignee:
              nutchas Nutcha Söderdahl
              Reporter:
              samuel Samuel Lidén Borell
              Verified by:
              Ulf Undmark
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified