<?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 Authentication error while securing Nifi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-error-while-securing-Nifi/m-p/159017#M49208</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10410-ambari-sandbox-3.jpg" style="width: 1067px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20790i735812262019CAE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10410-ambari-sandbox-3.jpg" alt="10410-ambari-sandbox-3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using hortonworks sandbox 2.4, While securing Nifi step_by_step, I used TinyCert to generate my own certificate authority and certificates and I download the client and server certificates in PKCS12 format.  After that I created some changes in Nifi config --&amp;gt; nifi.properities as shown in the picture. Finally, I open the file authorized-users. xml, in the Nifi-conf directory and create an admin user based on the DN of the client certificate.&lt;/P&gt;&lt;P&gt;&amp;lt;users&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;user dn="CN=guest, OU=demo, O=Hortonworks, L=trichy, ST=tamilnadu, C=india"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;role name="ROLE_ADMIN"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/user&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/users&amp;gt;&lt;/P&gt;&lt;P&gt;I follow this link &lt;A href="https://community.hortonworks.com/articles/886/securing-nifi-step-by-step.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.hortonworks.com/articles/886/securing-nifi-step-by-step.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;While I run Nifi under localhost:9090 I got error as shown in the picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10411-localhost.jpg" style="width: 1849px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20791i617AB8DDFFC6A6F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10411-localhost.jpg" alt="10411-localhost.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 12:07:45 GMT</pubDate>
    <dc:creator>narasimha_varma</dc:creator>
    <dc:date>2019-08-18T12:07:45Z</dc:date>
    <item>
      <title>Authentication error while securing Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-error-while-securing-Nifi/m-p/159017#M49208</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10410-ambari-sandbox-3.jpg" style="width: 1067px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20790i735812262019CAE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10410-ambari-sandbox-3.jpg" alt="10410-ambari-sandbox-3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using hortonworks sandbox 2.4, While securing Nifi step_by_step, I used TinyCert to generate my own certificate authority and certificates and I download the client and server certificates in PKCS12 format.  After that I created some changes in Nifi config --&amp;gt; nifi.properities as shown in the picture. Finally, I open the file authorized-users. xml, in the Nifi-conf directory and create an admin user based on the DN of the client certificate.&lt;/P&gt;&lt;P&gt;&amp;lt;users&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;user dn="CN=guest, OU=demo, O=Hortonworks, L=trichy, ST=tamilnadu, C=india"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;role name="ROLE_ADMIN"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/user&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/users&amp;gt;&lt;/P&gt;&lt;P&gt;I follow this link &lt;A href="https://community.hortonworks.com/articles/886/securing-nifi-step-by-step.html" rel="nofollow noopener noreferrer" target="_blank"&gt;https://community.hortonworks.com/articles/886/securing-nifi-step-by-step.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;While I run Nifi under localhost:9090 I got error as shown in the picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10411-localhost.jpg" style="width: 1849px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20791i617AB8DDFFC6A6F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10411-localhost.jpg" alt="10411-localhost.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:07:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-error-while-securing-Nifi/m-p/159017#M49208</guid>
      <dc:creator>narasimha_varma</dc:creator>
      <dc:date>2019-08-18T12:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error while securing Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-error-while-securing-Nifi/m-p/159018#M49209</link>
      <description>&lt;P&gt;Hi Narasimma, &lt;/P&gt;&lt;P&gt; Few pointers, &lt;/P&gt;&lt;P&gt;--&amp;gt; If the configurations are done correctly and you have loaded your client certificate to your browser, you will only be able to view the NiFi UI via &lt;A href="https://localhost:port" target="_blank"&gt;https://localhost:port&lt;/A&gt; not &lt;A href="http://localhost:port" target="_blank"&gt;http://localhost:port&lt;/A&gt; like in your screenshot. &lt;/P&gt;&lt;P&gt;--&amp;gt; It looks like you are following the steps to get around it in an older version of HDF. Latest release, HDF-2.x gives us better ways to get SSL enabled with help of NiFi CA and tls-toolkit. please follow the below link for the same.(unfortunately you may not be able to do this in your sandbox where HDP is already installed) &lt;/P&gt;&lt;P&gt;  &lt;A href="https://community.hortonworks.com/articles/58009/hdf-20-enable-ssl-for-apache-nifi-from-ambari.html" target="_blank"&gt;https://community.hortonworks.com/articles/58009/hdf-20-enable-ssl-for-apache-nifi-from-ambari.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;
--&amp;gt; In the Latest version we wont be using authorized-users.xml to configure user roles but instead an Initial Admin identity.&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Jobin George&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 02:05:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-error-while-securing-Nifi/m-p/159018#M49209</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2016-12-18T02:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication error while securing Nifi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-error-while-securing-Nifi/m-p/159019#M49210</link>
      <description>&lt;P&gt;Thank you very much Jobin George  &lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 12:18:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Authentication-error-while-securing-Nifi/m-p/159019#M49210</guid>
      <dc:creator>narasimha_varma</dc:creator>
      <dc:date>2016-12-19T12:18:32Z</dc:date>
    </item>
  </channel>
</rss>

