<?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 New LDAP configuration failing with &amp;quot;SSLHandshakeException: Received fatal alert: handshake_failure&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/New-LDAP-configuration-failing-with-quot/m-p/327140#M229982</link>
    <description>&lt;P&gt;We need to update our LDAP configuration because our certificate is going to expire; we have a test ldaps server set up with the new certificate.&amp;nbsp; From within CDH-&amp;gt;Administration-&amp;gt;Settings, I pointed the "&lt;SPAN&gt;LDAP URL" to the new server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;simple bind failed: ldapsdev.{obscured domain}:3269; nested exception is javax.naming.CommunicationException: simple bind failed: ldapsdev.{obscureddomain}:3269 [Root exception is javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Under the assumption that a cert needed to be added, I tried to figure out how, but could find zero documentation other than this:&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Steps-to-setup-Atlas-with-Ldaps-SSL/ta-p/247365" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Community-Articles/Steps-to-setup-Atlas-with-Ldaps-SSL/ta-p/247365&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That relates to Atlas, which we don't use, but seemed right.&amp;nbsp; I downloaded "ldapsdev-ca.crt" from the ldaps server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;echo -n | openssl s_client -connect ldapsdev.{obscureddomain}:636 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' &amp;gt; ldapsdev-ca.crt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then imported it into&amp;nbsp;/usr/java/jdk1.7.0_67-cloudera/jre/lib/security/cacerts.&amp;nbsp; When I do a keytool -list on that, I see it in there.&amp;nbsp; I then restarted cloudera-scm-server, but I still get the same error.&lt;/P&gt;&lt;P&gt;Was that not the right cacerts file?&amp;nbsp; There are others in various subdirs under /etc/pki I could try to add to, but it'd be nice to know for sure which file Cloudera Server is trying to use.&amp;nbsp; Thanks!!!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:43:55 GMT</pubDate>
    <dc:creator>MattHearnCSC</dc:creator>
    <dc:date>2022-09-16T14:43:55Z</dc:date>
    <item>
      <title>New LDAP configuration failing with "SSLHandshakeException: Received fatal alert: handshake_failure"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/New-LDAP-configuration-failing-with-quot/m-p/327140#M229982</link>
      <description>&lt;P&gt;We need to update our LDAP configuration because our certificate is going to expire; we have a test ldaps server set up with the new certificate.&amp;nbsp; From within CDH-&amp;gt;Administration-&amp;gt;Settings, I pointed the "&lt;SPAN&gt;LDAP URL" to the new server.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;simple bind failed: ldapsdev.{obscured domain}:3269; nested exception is javax.naming.CommunicationException: simple bind failed: ldapsdev.{obscureddomain}:3269 [Root exception is javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Under the assumption that a cert needed to be added, I tried to figure out how, but could find zero documentation other than this:&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Community-Articles/Steps-to-setup-Atlas-with-Ldaps-SSL/ta-p/247365" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Community-Articles/Steps-to-setup-Atlas-with-Ldaps-SSL/ta-p/247365&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That relates to Atlas, which we don't use, but seemed right.&amp;nbsp; I downloaded "ldapsdev-ca.crt" from the ldaps server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;echo -n | openssl s_client -connect ldapsdev.{obscureddomain}:636 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' &amp;gt; ldapsdev-ca.crt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then imported it into&amp;nbsp;/usr/java/jdk1.7.0_67-cloudera/jre/lib/security/cacerts.&amp;nbsp; When I do a keytool -list on that, I see it in there.&amp;nbsp; I then restarted cloudera-scm-server, but I still get the same error.&lt;/P&gt;&lt;P&gt;Was that not the right cacerts file?&amp;nbsp; There are others in various subdirs under /etc/pki I could try to add to, but it'd be nice to know for sure which file Cloudera Server is trying to use.&amp;nbsp; Thanks!!!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:43:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/New-LDAP-configuration-failing-with-quot/m-p/327140#M229982</guid>
      <dc:creator>MattHearnCSC</dc:creator>
      <dc:date>2022-09-16T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: New LDAP configuration failing with "SSLHandshakeException: Received fatal alert: handshake_failure"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/New-LDAP-configuration-failing-with-quot/m-p/332289#M231130</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming you want to enable external authentication to LDAP in Cloudera Manager. Please find steps in the product documentation&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_sg_external_auth.html#cmug_topic_13_9_2__section_ur1_wxn_mk" target="_blank" rel="noopener"&gt;here for 6.x&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/security-kerberos-authentication/topics/cm-security-external-authentication-ldap.html#ariaid-title2" target="_blank" rel="noopener"&gt;here for 7.x&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The steps you listed seem about right and should work. I suggest to verify if CM makes use of this JDK in the &lt;STRONG&gt;CM -&amp;gt; Support -&amp;gt; About&lt;/STRONG&gt; page, and if necessary follow the steps in documentation to explicitly set the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;-Djavax.net.ssl.trustStore&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN class="cdoc-line"&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;-Djavax.net.ssl.trustStorePassword&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;SPAN class="cdoc-line"&gt;startup properties.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 07:56:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/New-LDAP-configuration-failing-with-quot/m-p/332289#M231130</guid>
      <dc:creator>gzigldrum</dc:creator>
      <dc:date>2021-12-15T07:56:00Z</dc:date>
    </item>
  </channel>
</rss>

