<?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: Ranger SSL Not Working in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227388#M82717</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29224/kandalkarbhushan.html" nodeid="29224"&gt;@Bhushan Kandalkar&lt;/A&gt; then you can try above recommendations and see if that helps&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 23:28:23 GMT</pubDate>
    <dc:creator>apappu</dc:creator>
    <dc:date>2018-08-28T23:28:23Z</dc:date>
    <item>
      <title>Ranger SSL Not Working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227384#M82713</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;We have enabled SSL for Ranger Admin Web UI. We can access ranger Admin Web UI on port 6182.&lt;/P&gt;&lt;P&gt;But Hive Server2 daemon is failing to refresh policies after enabling SSL for Ranger Admin Web UI. &lt;/P&gt;&lt;P&gt;We are using internal CA signed certificate. Our Hive Server2 is SSL enabled.&lt;/P&gt;&lt;P&gt;We have done all configuration for enabling two-way SSL between Ranger and Hive. We have imported Ranger Admin's certificate in Hiveserver2 Truststore and Hiveserver2 certificate in Ranger Admin's Truststore. We have setup Keystore for Hiveserver2 and Ranger Admin. &lt;/P&gt;&lt;P&gt;Also, added &lt;STRONG&gt;hmaster.test.org&lt;/STRONG&gt; as Common Name for Certificate in Hive and Ranger policy.&lt;/P&gt;&lt;P&gt;In Hive Server2 log, we are getting following error:&lt;/P&gt;&lt;PRE&gt;2018-08-27 06:40:31,785 ERROR [main]: client.RangerAdminRESTClient (RangerAdminRESTClient.java:getServicePoliciesIfUpdated(124)) - Error getting policies. secureMode=false, user=hive (auth:SIMPLE), response={"httpStatusCode":400,"statusCode":1,"msgDesc":"Unauthorized access - unable to get client certificate","messageList":[{"name":"OPER_NOT_ALLOWED_FOR_ENTITY","rbKey":"xa.error.oper_not_allowed_for_state","message":"Operation not allowed for entity"}]}, serviceName=C03_hive
2018-08-27 06:40:31,786 ERROR [main]: util.PolicyRefresher (PolicyRefresher.java:loadPolicyfromPolicyAdmin(255)) - PolicyRefresher(serviceName=C03_hive): failed to refresh policies. Will continue to use last known version of policies (-1)
java.lang.Exception: Unauthorized access - unable to get client certificate
        at org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdated(RangerAdminRESTClient.java:126)
        at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:232)
        at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:188)
        at org.apache.ranger.plugin.util.PolicyRefresher.startRefresher(PolicyRefresher.java:136)


&lt;/PRE&gt;&lt;P&gt;In Ranger Admin log, we are getting following error:&lt;/P&gt;&lt;PRE&gt;2018-08-27 11:45:02,556 [http-bio-6182-exec-5] ERROR org.apache.ranger.common.ServiceUtil (ServiceUtil.java:1367) - Unauthorized access. Unable to get client certificate. serviceName=C03_hive
2018-08-27 11:45:02,557 [http-bio-6182-exec-5] INFO  org.apache.ranger.common.RESTErrorUtil (RESTErrorUtil.java:65) - Request failed. SessionId=null, loginId=null, logMessage=Unauthorized access - unable to get client certificate
javax.ws.rs.WebApplicationException
        at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:56)
        at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:335)
        at org.apache.ranger.common.ServiceUtil.isValidateHttpsAuthentication(ServiceUtil.java:1368)
        at org.apache.ranger.rest.ServiceREST.getServicePoliciesIfUpdated(ServiceREST.java:1817)


&lt;/PRE&gt;&lt;P&gt;How to solve it?&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhushan&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 19:07:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227384#M82713</guid>
      <dc:creator>bkandalkar</dc:creator>
      <dc:date>2018-08-27T19:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger SSL Not Working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227385#M82714</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29224/kandalkarbhushan.html" nodeid="29224"&gt;@Bhushan Kandalkar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What version HDP are you using? By default 2-WAY SSL is enabled between Hive and Ranger - so server is expecting client certificate as part of handshake and it is failing.&lt;/P&gt;&lt;P&gt;I have an article at &lt;A href="https://community.hortonworks.com/articles/68150/configuring-ranger-ranger-hdfs-plugin-for-ssl-with.html" target="_blank"&gt;https://community.hortonworks.com/articles/68150/configuring-ranger-ranger-hdfs-plugin-for-ssl-with.html&lt;/A&gt; - please follow and let me know. &lt;/P&gt;&lt;P&gt;May be you can try setting below configs&lt;/P&gt;&lt;P&gt;ranger.service.https.attrib.clientAuth=false&lt;/P&gt;&lt;P&gt;ranger.service.https.attrib.client.auth=false&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 23:40:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227385#M82714</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2018-08-27T23:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger SSL Not Working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227386#M82715</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11311/apappu.html" nodeid="11311"&gt;@amarnath reddy pappu&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am using HDP-2.5.6.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 17:38:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227386#M82715</guid>
      <dc:creator>bkandalkar</dc:creator>
      <dc:date>2018-08-28T17:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger SSL Not Working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227387#M82716</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/29224/kandalkarbhushan.html" nodeid="29224"&gt;@Bhushan Kandalkar&lt;/A&gt;&lt;P&gt;The error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Unauthorized access - unable to get client certificate at&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Means the truststore has not been properly configured for ranger admin. I suggest you review the following video where I cover this configuration in detail:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/187924/video-kb-how-to-co-nfigure-ranger-admin-ssl.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/187924/video-kb-how-to-co-nfigure-ranger-admin-ssl.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 19:16:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227387#M82716</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-08-28T19:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger SSL Not Working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227388#M82717</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/29224/kandalkarbhushan.html" nodeid="29224"&gt;@Bhushan Kandalkar&lt;/A&gt; then you can try above recommendations and see if that helps&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 23:28:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227388#M82717</guid>
      <dc:creator>apappu</dc:creator>
      <dc:date>2018-08-28T23:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger SSL Not Working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227389#M82718</link>
      <description>&lt;P&gt;Thanks &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;I am able to configure 2-way SSL. But 1-way SSL is not working in HDP-2.5.6.&lt;/P&gt;&lt;P&gt;Also, we have configured HiveServer2 HA. What should be the value of &lt;STRONG&gt;Common Name For Certificate &lt;/STRONG&gt;in&lt;STRONG&gt; &lt;/STRONG&gt;Ranger Policy Manager UI for Hive repository? Currently for one of the Hiveserver2 CN value is hmaster.test.org&lt;STRONG&gt; &lt;/STRONG&gt;and for other Hiveserver2 CN value is&lt;STRONG&gt; &lt;/STRONG&gt;hmaster2.test.org.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 12:39:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227389#M82718</guid>
      <dc:creator>bkandalkar</dc:creator>
      <dc:date>2018-08-29T12:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger SSL Not Working</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227390#M82719</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/29224/kandalkarbhushan.html" nodeid="29224"&gt;@Bhushan Kandalkar&lt;/A&gt;&lt;P&gt;For Common Name for Certificate use a comma separated list (no spaces before of after comma). For example:&lt;/P&gt;&lt;P&gt;hmaster.test.org,hmaster2.test.org&lt;/P&gt;&lt;P&gt;I haven't got the chance to test 1-way ssl between plugins and ranger admin yet. However, by looking at the following jira &lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/RANGER-1094" target="_blank"&gt;https://issues.apache.org/jira/browse/RANGER-1094&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This shows as fixed in ranger 0.6.3 and hdp-2.5.6 comes with ranger 0.6 so perhaps is still not supported in your version.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 22:33:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-SSL-Not-Working/m-p/227390#M82719</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2018-08-29T22:33:04Z</dc:date>
    </item>
  </channel>
</rss>

