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

Importing Microsoft CA fails using ejbca.sh

    Details

    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Team Alice - 2019 w34, EJBCA Team Alice - 2019 w37

      Description

      Importing a Microsoft CA certificate which is dumped using the certutil tool fails in EJBCA using ejbca.sh.
      The command producing the error is as follows:
      ./ejbca.sh ca importcertsms --username EMPTY --password foo123 --caname "[CANAME] -a REVOKED -f /root/test_import_revoked.txt --certprofile [CPName] --eeprofile [EEPName] --verbose

      The test data used in the command is attached to the ticket.

      Command fails with the following exception in the ImportMSCACertificate.java class:

      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
      at org.ejbca.ui.cli.ca.ImportMSCACertificates.execute(ImportMSCACertificates.java:90)
      at org.ejbca.ui.cli.infrastructure.command.PasswordUsingCommandBase.execute(PasswordUsingCommandBase.java:202)
      at org.ejbca.ui.cli.infrastructure.library.CommandLibrary$Branch.execute(CommandLibrary.java:287)
      at org.ejbca.ui.cli.infrastructure.library.CommandLibrary$Branch.execute(CommandLibrary.java:297)
      at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.findAndExecuteCommandFromParameters(CommandLibrary.java:78)
      at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:33)

      Corresponding Confluence doc seems to be out of date and needs to be updated:
      https://doc.primekey.com/ejbca/tutorials-and-guides/migrating-from-other-cas-to-ejbca/migrating-microsoft-ca-to-ejbca

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bastianf Bastian Fredriksson
              Reporter:
              amin Amin Khorsandi
              Verified by:
              Samuel Lidén Borell
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Time Spent - 1 day, 6 hours, 20 minutes Remaining Estimate - 1 day, 1 hour, 40 minutes
                  1d 1h 40m
                  Logged:
                  Time Spent - 1 day, 6 hours, 20 minutes Remaining Estimate - 1 day, 1 hour, 40 minutes
                  1d 6h 20m