Uploaded image for project: 'CESeCore'
  1. CESeCore
  2. CESECORE-238

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.1.1
    • Component/s: None
    • Labels:
      None

      Description

      having unused fields in the user DN 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
              Verified by:
              Filipe Regadas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: