<?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 error Keystore password was incorrect after configure ssl in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-error-Keystore-password-was-incorrect-after-configure/m-p/212544#M69616</link>
    <description>&lt;P&gt;Hi
I am trying enable ssl for ranger &lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_security/content/configure_ambari_ranger_ssl_public_ca_certs_admin.html"&gt;using this link&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I have java keystore and truststore files, I only use this 2 files, for other services they work properly, also checked password with java keytool and it is correct, tested several passwords for keystore file from simple to hard passwords but ranger-admin gives error in /var/log/ranger/admin/catalina.out during start:&lt;/P&gt;&lt;PRE&gt;INFO: Initializing ProtocolHandler ["http-bio-6182"]
Oct 13, 2017 1:11:14 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-6182"]
java.io.IOException: Keystore was tampered with, or password was incorrect
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
        at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
        at java.security.KeyStore.load(KeyStore.java:1445)
&lt;/PRE&gt;&lt;P&gt;configuration are done from ambari then I checked ranger-admin-site.xml and:&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;ranger.service.https.attrib.keystore.pass&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;_&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;here I cant see any password there is only " _ " symbol(but from ambari I set actual password, then I tried manually edit this xml file but after restart ranger service resets it and there is "_" anyway)&lt;/P&gt;&lt;P&gt;this is permissions of the files(tried different permissions too):&lt;/P&gt;&lt;PRE&gt;-rw------- 1 ranger ranger 1586 Oct 11 14:29 truststore.jks

-rw-r----- 1 ranger ranger 2872 Oct 12 14:03 keystore.jks

&lt;/PRE&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2017 20:35:18 GMT</pubDate>
    <dc:creator>shota</dc:creator>
    <dc:date>2017-10-13T20:35:18Z</dc:date>
    <item>
      <title>ranger error Keystore password was incorrect after configure ssl</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-error-Keystore-password-was-incorrect-after-configure/m-p/212544#M69616</link>
      <description>&lt;P&gt;Hi
I am trying enable ssl for ranger &lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.2/bk_security/content/configure_ambari_ranger_ssl_public_ca_certs_admin.html"&gt;using this link&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I have java keystore and truststore files, I only use this 2 files, for other services they work properly, also checked password with java keytool and it is correct, tested several passwords for keystore file from simple to hard passwords but ranger-admin gives error in /var/log/ranger/admin/catalina.out during start:&lt;/P&gt;&lt;PRE&gt;INFO: Initializing ProtocolHandler ["http-bio-6182"]
Oct 13, 2017 1:11:14 PM org.apache.coyote.AbstractProtocol init
SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-6182"]
java.io.IOException: Keystore was tampered with, or password was incorrect
        at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:780)
        at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56)
        at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224)
        at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70)
        at java.security.KeyStore.load(KeyStore.java:1445)
&lt;/PRE&gt;&lt;P&gt;configuration are done from ambari then I checked ranger-admin-site.xml and:&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
      &amp;lt;name&amp;gt;ranger.service.https.attrib.keystore.pass&amp;lt;/name&amp;gt;
      &amp;lt;value&amp;gt;_&amp;lt;/value&amp;gt;
    &amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;here I cant see any password there is only " _ " symbol(but from ambari I set actual password, then I tried manually edit this xml file but after restart ranger service resets it and there is "_" anyway)&lt;/P&gt;&lt;P&gt;this is permissions of the files(tried different permissions too):&lt;/P&gt;&lt;PRE&gt;-rw------- 1 ranger ranger 1586 Oct 11 14:29 truststore.jks

-rw-r----- 1 ranger ranger 2872 Oct 12 14:03 keystore.jks

&lt;/PRE&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 20:35:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-error-Keystore-password-was-incorrect-after-configure/m-p/212544#M69616</guid>
      <dc:creator>shota</dc:creator>
      <dc:date>2017-10-13T20:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: ranger error Keystore password was incorrect after configure ssl</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-error-Keystore-password-was-incorrect-after-configure/m-p/212545#M69617</link>
      <description>&lt;P&gt;ranger-admin-site.xml will not have the password in plain text, so '_' you see is correct. Make sure your keystore has only one right entry and ranger SSL configs are correct. &lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 20:42:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-error-Keystore-password-was-incorrect-after-configure/m-p/212545#M69617</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2017-10-13T20:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: ranger error Keystore password was incorrect after configure ssl</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-error-Keystore-password-was-incorrect-after-configure/m-p/212546#M69618</link>
      <description>&lt;P&gt;Problem solved after update HDP stack from 2.6.1 to latest 2.6.2 version&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 17:33:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ranger-error-Keystore-password-was-incorrect-after-configure/m-p/212546#M69618</guid>
      <dc:creator>shota</dc:creator>
      <dc:date>2017-10-16T17:33:21Z</dc:date>
    </item>
  </channel>
</rss>

