Problem with certificate import on nuxeo 5.5

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

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

certificate = session.createEntry(map);



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

and session is an and certificate is DocumentModel certificate.

The error we get in the log is the following: createEntry failed

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

Exception during saving Exception: message: updateEntry failed for 'username'.

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

Thank you very much in advance, A.

0 votes

1 answers




The “createEntry failed” error log is followed by a stack trace giving more details on the root cause.
You would also get much more details by setting a DEBUG log level on “”.

Same remarks about the update, even if I'm not sure how you can update something if the creation failed.

Did you write unit tests for validating your code? That would also help us to reproduce your issue if you could share those tests.

0 votes