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

HSMKeyTool --force flag does not work when using an attributes file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.15.0
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Other
    • Sprint:
      EJBCA Sprint 18

      Description

      We have a nice block in "clientToolBox PKCS11HEMKeyTool generate" to not overwrite another key if the alias already exists, unless the --force flag is used.

      Parsing of the --force flag doesn't work if we use an attributes file however.

      ./ejbcaClientToolBox.sh PKCS11HSMKeyTool generate ../../attributes.txt 2048 keylabel1 --force

      The fix is trivial, as we have the nice CliTools.getAndRemoveSwitch to use instead of parsing by hand.

        Attachments

          Activity

            People

            • Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Ulf Undmark
            • 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