<?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 Ranger KMS Rest API commands not working in kerberized cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149795#M52785</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While executing the following Ranger KMS rest API command, we have encountered the exception:&lt;/P&gt;&lt;P&gt;command: curl -u admin:admin -X GET &lt;A href="http://&amp;lt;ranger-KMS-server&amp;gt;:9292/kms/v1/keys/names" target="_blank"&gt;http://&amp;lt;ranger-KMS-server&amp;gt;:9292/kms/v1/keys/names&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Exception: Authentication required-This request requires HTTP authentication.&lt;/P&gt;&lt;P&gt;We have created the keyadmin principal with the password keyadmin1 as configured in kms-properties. We can create keys and list keys via Ranger KMS UI. Please advice a solution ASAP.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2017 22:32:17 GMT</pubDate>
    <dc:creator>vandana_6</dc:creator>
    <dc:date>2017-01-27T22:32:17Z</dc:date>
    <item>
      <title>Ranger KMS Rest API commands not working in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149795#M52785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While executing the following Ranger KMS rest API command, we have encountered the exception:&lt;/P&gt;&lt;P&gt;command: curl -u admin:admin -X GET &lt;A href="http://&amp;lt;ranger-KMS-server&amp;gt;:9292/kms/v1/keys/names" target="_blank"&gt;http://&amp;lt;ranger-KMS-server&amp;gt;:9292/kms/v1/keys/names&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Exception: Authentication required-This request requires HTTP authentication.&lt;/P&gt;&lt;P&gt;We have created the keyadmin principal with the password keyadmin1 as configured in kms-properties. We can create keys and list keys via Ranger KMS UI. Please advice a solution ASAP.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 22:32:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149795#M52785</guid>
      <dc:creator>vandana_6</dc:creator>
      <dc:date>2017-01-27T22:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS Rest API commands not working in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149796#M52786</link>
      <description>&lt;P&gt;Have you tried kinit'ing with the keyadmin principal and then trying the curl call with kerberos auth?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 05:45:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149796#M52786</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2017-01-28T05:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS Rest API commands not working in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149797#M52787</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47/vperiasamy.html" nodeid="47"&gt;@vperiasamy&lt;/A&gt; I tried kiniting the keyadmin principal. But still facing the same authentication error.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 14:17:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149797#M52787</guid>
      <dc:creator>vandana_6</dc:creator>
      <dc:date>2017-01-30T14:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS Rest API commands not working in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149798#M52788</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2953/vandana6.html" nodeid="2953"&gt;@Vandana  K R&lt;/A&gt; you need to use curl's negotiate option to authenticate via SPNEGO:&lt;/P&gt;&lt;PRE&gt;kinit -kt /etc/security/keytabs/rangerkms.service.keytab rangerkms/HOST@DOMAIN
curl --negotiate -u : -H 'Content-Type: application/json' &lt;A href="http://HOST:9292/kms/v1/key/mykey/_metadata" target="_blank"&gt;http://HOST:9292/kms/v1/key/mykey/_metadata&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2017 01:59:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149798#M52788</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2017-02-01T01:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS Rest API commands not working in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149799#M52789</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11295/slachterman.html"&gt;slachterman&lt;/A&gt; thank you it worked with negotiate.&lt;/P&gt;&lt;P&gt;Now when I disabled the kerberos and tried the same rest api command , same exception recreated.&lt;/P&gt;&lt;P&gt;command: curl -u keyadmin:keyadmin1 -X GET &lt;A href="http://&amp;lt;ranger-KMS-server&amp;gt;:9292/kms/v1/keys/names" target="_blank"&gt;http://&amp;lt;ranger-KMS-server&amp;gt;:9292/kms/v1/keys/names&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Exception: Authentication required-This request requires HTTP authentication.&lt;/P&gt;&lt;P&gt;Please advice&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 18:54:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149799#M52789</guid>
      <dc:creator>vandana_6</dc:creator>
      <dc:date>2017-02-01T18:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS Rest API commands not working in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149800#M52790</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2953/vandana6.html" nodeid="2953"&gt;@Vandana  K R&lt;/A&gt;, that is really a separate question, would you mind accepting my answer if it resolved your issue and creating a separate post for this issue? That will make it easier for others to find this resolution in the future.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:45:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149800#M52790</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2017-02-01T22:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS Rest API commands not working in kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149801#M52791</link>
      <description>&lt;P&gt;thank you,my issue has been resolved with negotiate option.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 13:21:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-Rest-API-commands-not-working-in-kerberized/m-p/149801#M52791</guid>
      <dc:creator>vandana_6</dc:creator>
      <dc:date>2017-02-02T13:21:39Z</dc:date>
    </item>
  </channel>
</rss>

