<?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 How to turn off 2 way SSL authentication for smartsense agent? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125241#M26804</link>
    <description>&lt;P&gt;I am trying to restart my hst-agent, but it repeatedly fails with below error message:&lt;/P&gt;&lt;PRE&gt;ERROR 2016-05-02 03:08:20,978 security.py:78 - Two-way SSL authentication failed. Ensure that server and agent certificates were signed by the same CA and restart the agent. 

In order to receive a new agent certificate, remove existing certificate file from keys directory. As a workaround you can turn off two-way SSL authentication in agent configuration(hst-agent.ini)

Exiting.. 

ERROR 2016-05-02 03:08:20,979 security.py:86 - [Errno 8] _ssl.c:492: EOF occurred in violation of protocol&lt;/PRE&gt;&lt;P&gt;I even tried deleting all the hst-agent keys bit still to no avail. &lt;/P&gt;&lt;P&gt;I am trying to setup the smartsense on my HDP 2.4 VM&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2016 10:23:22 GMT</pubDate>
    <dc:creator>hduraiswamy</dc:creator>
    <dc:date>2016-05-02T10:23:22Z</dc:date>
    <item>
      <title>How to turn off 2 way SSL authentication for smartsense agent?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125241#M26804</link>
      <description>&lt;P&gt;I am trying to restart my hst-agent, but it repeatedly fails with below error message:&lt;/P&gt;&lt;PRE&gt;ERROR 2016-05-02 03:08:20,978 security.py:78 - Two-way SSL authentication failed. Ensure that server and agent certificates were signed by the same CA and restart the agent. 

In order to receive a new agent certificate, remove existing certificate file from keys directory. As a workaround you can turn off two-way SSL authentication in agent configuration(hst-agent.ini)

Exiting.. 

ERROR 2016-05-02 03:08:20,979 security.py:86 - [Errno 8] _ssl.c:492: EOF occurred in violation of protocol&lt;/PRE&gt;&lt;P&gt;I even tried deleting all the hst-agent keys bit still to no avail. &lt;/P&gt;&lt;P&gt;I am trying to setup the smartsense on my HDP 2.4 VM&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 10:23:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125241#M26804</guid>
      <dc:creator>hduraiswamy</dc:creator>
      <dc:date>2016-05-02T10:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off 2 way SSL authentication for smartsense agent?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125242#M26805</link>
      <description>&lt;P&gt;This error occurs because the md5 digest became deprecated in favor of sha256 in recent versions of Java. It is fixed in the next SmartSense HST release. &lt;STRONG&gt;The workaround is somewhat complicated, so we recommend you open a support case for assistance.&lt;/STRONG&gt; If you wish to attempt it yourself, here is the process...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WORKAROUND: &lt;/STRONG&gt;Change the default digest to “sha256” instead of “md5” and then regenerate all certificates. Follow these steps:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Use Ambari to stop the SmartSense service (all components)&lt;/LI&gt;&lt;LI&gt;Backup the old server keys on the HST Server host: cp -rp /var/lib/smartsense/hst-server/keys /var/lib/smartsense/hst-server/keys.backup&lt;/LI&gt;&lt;LI&gt;On the HST Server host, clean out the old keys:i. rm -f /var/lib/smartsense/hst-server/keys/ca.key&lt;OL&gt;&lt;LI&gt;rm -f /var/lib/smartsense/hst-server/keys/*.csr&lt;/LI&gt;&lt;LI&gt;rm -f /var/lib/smartsense/hst-server/keys/*.crt&lt;/LI&gt;&lt;LI&gt;rm -rf /var/lib/smartsense/hst-server/keys/db/*&lt;/LI&gt;&lt;LI&gt;mkdir /var/lib/smartsense/hst-server/keys/db/newcerts&lt;/LI&gt;&lt;LI&gt;touch /var/lib/smartsense/hst-server/keys/db/index.txt&lt;/LI&gt;&lt;LI&gt;echo 01 &amp;gt; /var/lib/smartsense/hst-server/keys/db/serial&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Edit file /var/lib/smartsense/hst-server/keys/ca.config and change line "default_md = md5"  to "default_md = sha256"&lt;/LI&gt;&lt;LI&gt;On &lt;STRONG&gt;all HST Agent hosts&lt;/STRONG&gt;, clean out the old keys: rm -f /var/lib/smartsense/hst-agent/keys/*&lt;/LI&gt;&lt;LI&gt;If using the &lt;STRONG&gt;HST Gateway:&lt;/STRONG&gt;
&lt;OL&gt;
&lt;LI&gt;Stop the gateway: hst gateway stop&lt;/LI&gt;&lt;LI&gt;Repeat steps 3 &amp;amp; 4 for the files under /var/lib/smartsense/hst-gateway/keys/ on the HST Gateway host&lt;/LI&gt;&lt;LI&gt;Repeat step 5 for the files under /var/lib/smartsense/hst-gateway-client/keys on all HST Server host(s)&lt;/LI&gt;&lt;LI&gt;Start the gateway: hst gateway start&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Use Ambari to start the SmartSense service (all components)&lt;/LI&gt;&lt;LI&gt;Verify both Ambari SmartSense service and SmartSense view shows correct number of agents registered.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Turning off two-way SSL is NOT recommended&lt;/STRONG&gt; (the error message has been improved in newer versions of HST), and the&lt;STRONG&gt; issue occurs on hosts with following JDK versions&lt;/STRONG&gt; or newer:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;JDK Family&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Versions&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oracle&lt;/TD&gt;&lt;TD&gt;1.8.0_71&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oracle&lt;/TD&gt;&lt;TD&gt;1.7.0_95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Oracle&lt;/TD&gt;&lt;TD&gt;1.6.0_111&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OpenJDK&lt;/TD&gt;&lt;TD&gt;1.7.0_45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OpenJDK&lt;/TD&gt;&lt;TD&gt;1.8.0_40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 03 May 2016 01:25:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125242#M26805</guid>
      <dc:creator>amiller</dc:creator>
      <dc:date>2016-05-03T01:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off 2 way SSL authentication for smartsense agent?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125243#M26806</link>
      <description>&lt;P&gt;Also, you can enable the md5 algorithm from your java security by changing the security setting from the file&lt;/P&gt;&lt;PRE&gt;JAVA_HOME/lib/security/java.security&lt;/PRE&gt;&lt;P&gt;and deleting the md5 algorithm from the line&lt;/P&gt;&lt;PRE&gt;jdk.certpath.disabledAlgorithms=MD2, MD5, RSA keySize &amp;lt; 1024


jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize &amp;lt; 2048&lt;/PRE&gt;&lt;P&gt;This worked for me - but when you do this, please be mindful of the security settings that you are impacting your machine.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 09:20:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125243#M26806</guid>
      <dc:creator>hduraiswamy</dc:creator>
      <dc:date>2016-05-03T09:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off 2 way SSL authentication for smartsense agent?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125244#M26807</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have the a similar issue but appears when we reboot the server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;07 Dec 2016 06:11:25 ERROR [MainThread] security.py:82 - Two-way SSL authentication failed. [Errno 0] _ssl.c:330: error:00000000:lib(0):func(0):reason(0)&lt;/P&gt;&lt;P&gt;The first thing that I do was find the keys in the HST Agent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/var/lib/smartsense/hst-agent/keys&lt;/P&gt;&lt;P&gt;The keys was empty. So I followed the next steps&lt;/P&gt;&lt;P&gt;1) In Ambari , restart all smartsense&lt;/P&gt;&lt;P&gt;2) In Ambari --- smartsense -- Restart HST Agent.&lt;/P&gt;&lt;P&gt;and now , the keys in the HST Agent are genereted.&lt;/P&gt;&lt;P&gt;Regards. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 01:03:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125244#M26807</guid>
      <dc:creator>luis_picazo</dc:creator>
      <dc:date>2016-12-08T01:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn off 2 way SSL authentication for smartsense agent?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125245#M26808</link>
      <description>&lt;P&gt;For SmartSense versions 1.3.0 and above, we can use below CLI to regenerate the SSL keys on agents&lt;/P&gt;&lt;P&gt;# hst reset-agent&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 10:16:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-turn-off-2-way-SSL-authentication-for-smartsense/m-p/125245#M26808</guid>
      <dc:creator>sappusamy</dc:creator>
      <dc:date>2017-06-02T10:16:40Z</dc:date>
    </item>
  </channel>
</rss>

