<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with certificate import on nuxeo 5.5 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/problem-with-certificate-import-on-nuxeo-5-5/m-p/326053#M13054</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The "createEntry failed" error log is followed by a stack trace giving more details on the root cause.&lt;BR /&gt; /&amp;gt;
You would also get much more details by setting a DEBUG log level on "org.nuxeo.ecm.directory".&lt;/P&gt;
&lt;P&gt;Same remarks about the update, even if I'm not sure how you can update something if the creation failed.&lt;/P&gt;
&lt;P&gt;Did you write unit tests for validating your code? That would also help us to reproduce your issue if you could share those tests.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2012 17:57:00 GMT</pubDate>
    <dc:creator>Julien_Carsique</dc:creator>
    <dc:date>2012-12-06T17:57:00Z</dc:date>
    <item>
      <title>Problem with certificate import on nuxeo 5.5</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problem-with-certificate-import-on-nuxeo-5-5/m-p/326052#M13053</link>
      <description>&lt;P&gt;We have problem regarding import of a SSL certificate (.pfx).&lt;/P&gt;
&lt;P&gt;For import of the certificate, we are using &lt;STRONG&gt;org.nuxeo.ecm.directory.api.DirectoryService&lt;/STRONG&gt; and &lt;STRONG&gt;org.nuxeo.ecm.core.api.DocumentModel&lt;/STRONG&gt; packages, further using:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;certificate = session.createEntry(map);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;where:&lt;/P&gt;
&lt;P&gt;Map&amp;lt;String, Object&amp;gt; &lt;STRONG&gt;map&lt;/STRONG&gt; = new HashMap&amp;lt;String, Object&amp;gt;();
map.put("userid", userID);
map.put("filename", userCertificate.getFilename());&lt;/P&gt;
&lt;P&gt;ByteArrayOutputStream byteOS = new ByteArrayOutputStream();
String keystore64Encoded = Base64.encodeBytes(byteOS.toByteArray());
map.put("keystore", keystore64Encoded);&lt;/P&gt;
&lt;P&gt;and &lt;STRONG&gt;session&lt;/STRONG&gt; is an org.nuxeo.ecm.directory.Session
and &lt;STRONG&gt;certificate&lt;/STRONG&gt; is DocumentModel certificate.&lt;/P&gt;
&lt;P&gt;The error we get in the log is the following:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;org.nuxeo.ecm.directory.DirectoryException: createEntry failed&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In case of trying to update an existing certificate, with newly generated we get the following error:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Exception during saving certificate.org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.directory.DirectoryException. message: updateEntry failed for 'username'.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Can you please help us with some direction regarding this issue ?&lt;/P&gt;
&lt;P&gt;Thank you very much in advance,
A.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 12:35:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problem-with-certificate-import-on-nuxeo-5-5/m-p/326052#M13053</guid>
      <dc:creator>ani1806_</dc:creator>
      <dc:date>2012-12-06T12:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with certificate import on nuxeo 5.5</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/problem-with-certificate-import-on-nuxeo-5-5/m-p/326053#M13054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The "createEntry failed" error log is followed by a stack trace giving more details on the root cause.&lt;BR /&gt; /&amp;gt;
You would also get much more details by setting a DEBUG log level on "org.nuxeo.ecm.directory".&lt;/P&gt;
&lt;P&gt;Same remarks about the update, even if I'm not sure how you can update something if the creation failed.&lt;/P&gt;
&lt;P&gt;Did you write unit tests for validating your code? That would also help us to reproduce your issue if you could share those tests.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 17:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/problem-with-certificate-import-on-nuxeo-5-5/m-p/326053#M13054</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-12-06T17:57:00Z</dc:date>
    </item>
  </channel>
</rss>

