Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10602

Problem with certificate import

    XMLWordPrintable

    Details

      Description

      We have problem regarding import of a SSL certificate (.pfx).

      For import of the certificate, we are using org.nuxeo.ecm.directory.api.DirectoryService and org.nuxeo.ecm.core.api.DocumentModel packages, further using:

      certificate = session.createEntry(map);

      where:

      Map<string, object=""> map = new HashMap<string, object="">(); map.put("userid", userID); map.put("filename", userCertificate.getFilename());

      ByteArrayOutputStream byteOS = new ByteArrayOutputStream(); String keystore64Encoded = Base64.encodeBytes(byteOS.toByteArray()); map.put("keystore", keystore64Encoded);

      and session is an org.nuxeo.ecm.directory.Session and certificate is DocumentModel certificate.

      The error we get in the log is the following:

      org.nuxeo.ecm.directory.DirectoryException: createEntry failed

      In case of trying to update an existing certificate, with newly generated we get the following error:

      Exception during saving certificate.org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.directory.DirectoryException. message: updateEntry failed for 'username'.

      Can you please help us with some direction regarding this issue ?

      Thank you very much in advance, A.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              community Community User
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: