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

CLI command ca getcacert always outputs root CA certificate when using the -der option

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.2.7
    • Fix Version/s: EJBCA 6.2.9
    • Component/s: CLI
    • Labels:
    • Issue discovered during:
      Integration

      Description

      Reproduction steps:

      1. Create a root CA.

      2. Create a sub CA, signed by the root CA.

      3. Run command:

      bin/ejbca.sh ca getcacert SubCA SubCA.crt -der

      4. Check subject of the output certificate:

      openssl x509 -noout -subject -inform der -in SubCA.crt

      Expected results:

      1. Subject DN of sub CA is shown.

      Actual results:

      1. Subject DN of root CA is shown.

        Attachments

          Activity

            People

            Assignee:
            mikek Mike Agrenius Kushner
            Reporter:
            branko Branko Majic (Inactive)
            Verified by:
            Johan Eklund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: