-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 5.5
-
Fix Version/s: QualifiedToSchedule
-
Component/s: Digital Signature
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.