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

Incorrect error message when editing uninitialised CAs if private keys are missing

    Details

    • Issue discovered during:
      Integration

      Description

      If a CA and its crypto token are imported from state dump, and an attempt is made to edit it, a misleading error message will be shown about missing crypto token (instead of complaining about missing private keys).

      Reproduction steps:

      1. Create state dump with CA "TestCA" and crypto token "TestCAToken".

      2. Import state dump into fresh installation with only "ManagementCA" CA/token.

      3. Log-in as super-admin onto EJBCA.

      4. Open page "CA Functions" -> "Certification Authorities".

      5. Select "TestCA" from the list, and click on the "Edit CA" button.

      Expected results:

      1. A warning/error is shown to the user that CA cannot be saved/initialised until the missing private keys are created (possibly listing the private keys that are missing).

      Actual results:

      1. An error is shown about missing crypto token in crypto token select box:

      "- Missing CryptoToken id 64524187".

      2. An explanation is shown below the crypto token select box, and at the bottom of the page next to the "Cancel" button:

      "You need to select a cryptotoken that exists before you can save!"

      Additional information:

      The crypto token from the select box does exist, but it simply has no private keys at all.

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            branko Branko Majic (Inactive)
            Verified by:
            Aveen Ismail (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: