<?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: Where to add keystore file for mutual authentication enabled for Knox service on cluster? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219745#M181633</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78506/sshelgao.html" nodeid="78506"&gt;@Snehal Shelgaonkar&lt;/A&gt; I'm glad to hear this worked for you. Please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2018 20:09:02 GMT</pubDate>
    <dc:creator>falbani</dc:creator>
    <dc:date>2018-06-14T20:09:02Z</dc:date>
    <item>
      <title>Where to add keystore file for mutual authentication enabled for Knox service on cluster?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219742#M181630</link>
      <description>&lt;P&gt;Hi, I have added Knox service to the cluster and enabled the ssl .Now I want to enable mutual auth. I have followed the steps from &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/setting_up_2-way_ssl_authentication.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.4/bk_security/content/setting_up_2-way_ssl_authentication.html&lt;/A&gt;. Where I have created gateway.jks (using cd $gateway bin/knoxcli.cmd create-cert --hostname $gateway-hostname command) and given truststore file path of the same in gateway-site.xml.&lt;/P&gt;&lt;P&gt;Now I want to know where to provide keystore file path for client side authentication when I put "gateway.client.auth.needed = true" in gateway-site.xml file. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 20:24:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219742#M181630</guid>
      <dc:creator>sshelgao</dc:creator>
      <dc:date>2018-06-11T20:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Where to add keystore file for mutual authentication enabled for Knox service on cluster?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219743#M181631</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/78506/sshelgao.html" nodeid="78506"&gt;@Snehal S&lt;/A&gt; Keystore file path is already set to gateway.jks by default and you should not change this. Once you perform the configuration mentioned on the link you shared  you need to import the&lt;/P&gt;&lt;P&gt;1. client public certificate to the knox truststore (on knox server machine)&lt;/P&gt;&lt;P&gt;2. the knox public certificate to the client truststore (on client server machine)&lt;/P&gt;&lt;P&gt;After 1 and 2 and if proper configuration was done this should work.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2018 20:37:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219743#M181631</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-06-11T20:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where to add keystore file for mutual authentication enabled for Knox service on cluster?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219744#M181632</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/11048/falbani.html" nodeid="11048"&gt;@Felix Albani&lt;/A&gt; for help. Sorry for delayed response.&lt;BR /&gt;It saved my time and worked when I imported public certs of respective machines.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 19:38:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219744#M181632</guid>
      <dc:creator>sshelgao</dc:creator>
      <dc:date>2018-06-14T19:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where to add keystore file for mutual authentication enabled for Knox service on cluster?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219745#M181633</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/78506/sshelgao.html" nodeid="78506"&gt;@Snehal Shelgaonkar&lt;/A&gt; I'm glad to hear this worked for you. Please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 20:09:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219745#M181633</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-06-14T20:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Where to add keystore file for mutual authentication enabled for Knox service on cluster?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219746#M181634</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11048/falbani.html" nodeid="11048"&gt;@Felix Albani&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The above issue is solved. Now we are facing strange thing, we have created a new user say snehal, created snehal@EXAMPLE.COM principal and snehal.keytab with this principal. And added "hadoop.proxyuser.snehal.groups=* , ,hadoop.proxyuser.snehal.hosts=* " properties in HDFS-&amp;gt;config-&amp;gt;custome-core site.&lt;/P&gt;&lt;P&gt; same way added property for webhcat also.&lt;/P&gt;&lt;P&gt;Now i am hitting  &amp;gt; &lt;STRONG&gt;GET &lt;A href="https://host:8443/gateway/default/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;user.name=snehal" target="_blank"&gt;https://host:8443/gateway/default/webhdfs/v1/?op=GETHOMEDIRECTORY&amp;amp;user.name=snehal&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am getting &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{"RemoteException":{"exception":"SecurityException","javaClassName":"java.lang.SecurityException","message":"Failed to obtain user group information: java.io.IOException: Usernames not matched: name=snehal != expected=knox"}}
Non activated Name node :https://host:8443/gateway/default, Error Message: 403#@_#{"RemoteException":{"exception":"SecurityException","javaClassName":"java.lang.SecurityException","message":"Failed to obtain user group information: java.io.IOException: Usernames not matched: name=snehal != expected=knox"}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Tried many ways like, adding the user snehal in supergroup, also did "kdestroy -&amp;gt; kinit with snehal keytab and principal" many times with different users also, Restarted ambari-server. But no luck.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Snehal&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 14:02:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Where-to-add-keystore-file-for-mutual-authentication-enabled/m-p/219746#M181634</guid>
      <dc:creator>sshelgao</dc:creator>
      <dc:date>2018-06-22T14:02:58Z</dc:date>
    </item>
  </channel>
</rss>

