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

Enforce unique subject DN does not work with unused fields in EE profile

    Details

    • Type: Bug
    • Status: Close Issue
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 4.0.3
    • Fix Version/s: EJBCA 4.0.4
    • Component/s: None
    • Labels:
      None

      Description

      having unused fields in the EE profile make the UserData subjectDN field look like:
      CN=unique,O=Bar1,O=Foo,O=,O=Bar2 Foo,C=SE

      But empty fields are filtered out then issuing the certificate so the CertificateData subjectDN field is:
      CN=unique,O=Bar1,O=Foo,O=Bar2 Foo,C=SE

      When looking for existing issued certificates when checking for uniqueness the SQL query for the subjectDN will be for the data from UserData, so nothing will be found.

      Before checking for other issued certificates when checking for unique subjectDN and unique public key, the subjectDN must be filtered the same way as when issuing certificates.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: