<?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>question Re: Problem while using ConsumeIMAP processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Problem-while-using-ConsumeIMAP-processor/m-p/289287#M214153</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73935"&gt;@Pr1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I am not an IMAP expert, the exception you are seeing here:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;PKIX path building failed.&lt;/P&gt;&lt;P&gt;unable to find valid certification path&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is a TLS handshake exception telling you that the complete certificate trust chain does not exist in the keystore.&amp;nbsp; On the NiFi side the complete trust chain would found in the NiFi truststore.jks.&amp;nbsp; Note: If NiFi is not secured you may need to add the trust chain certs to the NiFI java's default cacerts keystore.&lt;BR /&gt;&lt;BR /&gt;You can use openssl to get the complete trust chain for the IMAP server you are trying to consume from:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;openssl s_client -connect &amp;lt;IMAP server&amp;gt;:&amp;lt;IMAP port&amp;gt; -showcerts&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;In the server hello response returned from the IMAP server using above command, you will see multiple certificates.&amp;nbsp; First certificate is the imap server's public certificate (you do not need this one).&amp;nbsp; You will need all the public certificates that follow that server certificate.&amp;nbsp; These will be your Signing CAs (there may be one or more in order of signing until you reach the rootCA). The rootCa is last and you will notice the owner and issuer DN is the same. Each certificate begins with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-----BEGIN CERTIFICATE-----&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;and ends with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-----END CERTIFICATE-----&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you want to copy each certificate including the above lines to separate files:&lt;BR /&gt;Eaxamples:&lt;BR /&gt;intermediate.pem, intermediate2.pem, rootCA.pem&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can then use keytool to import these CAs in to your NiFi truststore.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;keytool -importcert -alias &amp;lt;alias usually based off CN name for certiifcate&amp;gt; -file &amp;lt;certificate.pem&amp;gt; -keystore &amp;lt;truststore.jks or java cacerts&amp;gt; -trustcacerts&lt;/LI-CODE&gt;&lt;P&gt;Note: each certificate imported must use a unique alias.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend importing your certificates in the same order as they were listed in openssl response (importing the rootCA last).&lt;BR /&gt;&lt;BR /&gt;Restart your NiFi so it loads the modified keystore.&lt;BR /&gt;&lt;BR /&gt;Hope this helps resolve your trust chain issue,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 15:21:08 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2020-02-06T15:21:08Z</dc:date>
    <item>
      <title>Problem while using ConsumeIMAP processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-while-using-ConsumeIMAP-processor/m-p/289278#M214152</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone experienced issue while using ConsumeImap Processor for consuming messages from Secure Email server using Imap port 993.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are getting below error&lt;/P&gt;
&lt;P&gt;PKIX path building failed.&lt;/P&gt;
&lt;P&gt;unable to find valid cerification path&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please write here if anyone faced issue like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 19:59:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-while-using-ConsumeIMAP-processor/m-p/289278#M214152</guid>
      <dc:creator>Pr1</dc:creator>
      <dc:date>2020-02-06T19:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using ConsumeIMAP processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-while-using-ConsumeIMAP-processor/m-p/289287#M214153</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73935"&gt;@Pr1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I am not an IMAP expert, the exception you are seeing here:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;PKIX path building failed.&lt;/P&gt;&lt;P&gt;unable to find valid certification path&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is a TLS handshake exception telling you that the complete certificate trust chain does not exist in the keystore.&amp;nbsp; On the NiFi side the complete trust chain would found in the NiFi truststore.jks.&amp;nbsp; Note: If NiFi is not secured you may need to add the trust chain certs to the NiFI java's default cacerts keystore.&lt;BR /&gt;&lt;BR /&gt;You can use openssl to get the complete trust chain for the IMAP server you are trying to consume from:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;openssl s_client -connect &amp;lt;IMAP server&amp;gt;:&amp;lt;IMAP port&amp;gt; -showcerts&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;In the server hello response returned from the IMAP server using above command, you will see multiple certificates.&amp;nbsp; First certificate is the imap server's public certificate (you do not need this one).&amp;nbsp; You will need all the public certificates that follow that server certificate.&amp;nbsp; These will be your Signing CAs (there may be one or more in order of signing until you reach the rootCA). The rootCa is last and you will notice the owner and issuer DN is the same. Each certificate begins with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-----BEGIN CERTIFICATE-----&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;and ends with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;-----END CERTIFICATE-----&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you want to copy each certificate including the above lines to separate files:&lt;BR /&gt;Eaxamples:&lt;BR /&gt;intermediate.pem, intermediate2.pem, rootCA.pem&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can then use keytool to import these CAs in to your NiFi truststore.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;keytool -importcert -alias &amp;lt;alias usually based off CN name for certiifcate&amp;gt; -file &amp;lt;certificate.pem&amp;gt; -keystore &amp;lt;truststore.jks or java cacerts&amp;gt; -trustcacerts&lt;/LI-CODE&gt;&lt;P&gt;Note: each certificate imported must use a unique alias.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend importing your certificates in the same order as they were listed in openssl response (importing the rootCA last).&lt;BR /&gt;&lt;BR /&gt;Restart your NiFi so it loads the modified keystore.&lt;BR /&gt;&lt;BR /&gt;Hope this helps resolve your trust chain issue,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:21:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-while-using-ConsumeIMAP-processor/m-p/289287#M214153</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2020-02-06T15:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while using ConsumeIMAP processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Problem-while-using-ConsumeIMAP-processor/m-p/289726#M214424</link>
      <description>&lt;P&gt;Thanks for your reply. This solution worked.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:00:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Problem-while-using-ConsumeIMAP-processor/m-p/289726#M214424</guid>
      <dc:creator>Pr1</dc:creator>
      <dc:date>2020-02-13T14:00:40Z</dc:date>
    </item>
  </channel>
</rss>

