<?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: cloudera agent TLS configuration in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302991#M221341</link>
    <description>&lt;P&gt;I did it, but doesn't work.&lt;/P&gt;&lt;P&gt;idk for cloudera server - all ok, but for agents - doesn't works.&lt;/P&gt;&lt;P&gt;(example for CM admin console, for hue - looks like this too).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo_2020-09-17_14-42-25.jpg" style="width: 827px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28903i2002C679F17759CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo_2020-09-17_14-42-25.jpg" alt="photo_2020-09-17_14-42-25.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 11:53:51 GMT</pubDate>
    <dc:creator>Yuriy_but</dc:creator>
    <dc:date>2020-09-17T11:53:51Z</dc:date>
    <item>
      <title>cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302795#M221254</link>
      <description>&lt;DIV&gt;&lt;FONT&gt;Hello.&lt;BR /&gt;I'm trying to use my own certs from CA(I converted them to right format)&lt;BR /&gt;I'm already configurated TLS for cloudera manager server (when I signed on https://{MASTER_IP}:7183 - I see it.&lt;BR /&gt;File cm_init.txt&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;setsettings AGENT_TLS true&lt;BR /&gt;setsettings WEB_TLS true&lt;BR /&gt;setsettings NEED_AGENTS_VALIDATION true&lt;BR /&gt;setsettings AUTO_TLS_TYPE NONE&lt;BR /&gt;setsettings KEYSTORE_PATH /opt/agentcerts/MYKEYSTORE.jks&lt;BR /&gt;setsettings KEYSTORE_PASSWORD MYPASSWORD&lt;BR /&gt;setsettings TRUSTSTORE_PATH /opt/agentcerts/MYTRUSTSTORE.jks&lt;BR /&gt;setsettings TRUSTSTORE_PASSWORD MYPASSWORD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Also I used them for HUE web UI and Hue Load Balancer - its also work too.&lt;BR /&gt;But, I need to configurate certs to agents too, because I didn't see status of my agents in (hosts -&amp;gt;all hosts tab).&lt;BR /&gt;I changed file /etc/cloudera-scm-agent/config.ini, there main changes on him:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;use_tls=1&lt;BR /&gt;verify_cert_file=/opt/agentcerts/MYCERT.pem&lt;BR /&gt;client_key_file=/opt/agentcerts/MYKEY.pem&lt;BR /&gt;client_keypw_file=/opt/agentcerts/KEYPASS.pw&lt;BR /&gt;client_cert_file=/opt/agentcerts/MYCERT.pem&lt;BR /&gt;verify_cert_dir=/opt/agentcerts/&lt;BR /&gt;&amp;nbsp;But in log file /var/log/cloudera-scm-agent/cloudera-scm-agent.log I still see defaults conf while it starts:&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agent Logging Level: INFO&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Agent config:&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security.max_cert_depth = 9&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security.use_tls = 0&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security.client_cert_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_cert_chain.pem&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security.verify_cert_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-in_cluster_ca_cert.pem&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security.client_key_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_key.pem&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security.client_keypw_file = /var/lib/cloudera-scm-agent/agent-cert/cm-auto-host_key.pw&lt;BR /&gt;[14/Sep/2020 14:09:36 +0000] 2560 MainThread agent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Security.cm_auto_cert_dir = /var/lib/cloudera-scm-agent/agent-cert&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Especially Idk why in log I see what use_tls=0. &lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Sep 2020 14:45:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302795#M221254</guid>
      <dc:creator>Yuriy_but</dc:creator>
      <dc:date>2020-09-15T14:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302798#M221257</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77458"&gt;@Yuriy_but&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for reaching out to the Community. What is the CDH version you are using, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For CDH6.3 please &lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/how_to_configure_cm_tls.html" target="_self"&gt;find here the related documentation&lt;/A&gt; on how to manually configure TLS Encryption for CM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you follow the steps from the documentation, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you:&lt;BR /&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 15:43:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302798#M221257</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2020-09-14T15:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302835#M221277</link>
      <description>&lt;P&gt;I has enabled TLS Encryption for agents, but when I change file "/etc/cloudera-scm-agent/config.ini" to use_tls=1 and use path for my CA certs - its doesn't apply, in log I see parameters "use_tls=0 and standard auto_tls path to files".&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 10:25:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302835#M221277</guid>
      <dc:creator>Yuriy_but</dc:creator>
      <dc:date>2020-09-15T10:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302939#M221312</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77458"&gt;@Yuriy_but&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for this information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you enable &lt;A href="https://community.cloudera.com/t5/Support-Questions/Installation-failed-Failed-to-receive-heartbeat-from-agent/m-p/93030/highlight/true#M33769" target="_self"&gt;"Use TLS Encryption for Agents"&lt;/A&gt; on CM, please?&lt;/P&gt;&lt;P&gt;Did you restart both CM and the agent on the host after making these changes?&lt;/P&gt;&lt;P&gt;To verify if the configuration change worked &lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/how_to_configure_cm_tls.html" target="_self"&gt;the documentation describes&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;In the Cloudera Manager Admin Console, go to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph menucascade"&gt;&lt;SPAN class="ph uicontrol"&gt;Hosts&lt;/SPAN&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;SPAN class="ph uicontrol"&gt;All Hosts&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;. If you see successful heartbeats reported in the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ph uicontrol"&gt;Last Heartbeat&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;column after restarting the agents, TLS encryption is working properly."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kind regards:&lt;/P&gt;&lt;P&gt;Ferenc&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 08:23:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302939#M221312</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2020-09-16T08:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302985#M221337</link>
      <description>&lt;P&gt;There is some photo (sorry for &lt;FONT&gt;quality, machine w/o internet access)&lt;/FONT&gt;:&lt;/P&gt;&lt;P&gt;1) Log file /var/log/cloudera-scm-agent/cloudera-scm-agent.log&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo_2020-09-17_12-53-55.jpg" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28900i2B760DC3E7F0F61A/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo_2020-09-17_12-53-55.jpg" alt="photo_2020-09-17_12-53-55.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Administration-&amp;gt; Settings -&amp;gt; TLS in CM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo_2020-09-17_12-55-19.jpg" style="width: 749px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28901i3854E4920979E5C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo_2020-09-17_12-55-19.jpg" alt="photo_2020-09-17_12-55-19.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3)Configuration file in /etc/cloudera-scm-agent/config.ini&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo_2020-09-17_12-57-50.jpg" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28902i841E9F62106A512B/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo_2020-09-17_12-57-50.jpg" alt="photo_2020-09-17_12-57-50.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 10:09:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302985#M221337</guid>
      <dc:creator>Yuriy_but</dc:creator>
      <dc:date>2020-09-17T10:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302989#M221340</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77458"&gt;@Yuriy_but&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the screenshots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the log I would intuitively expect that if the agent was able to read the new configs, the "Agent config" section would reflect your TLS configuration however, it does not show the verify cert file neither the enabled TLS setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you've &lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/how_to_configure_cm_tls.html#concept_anx_ypw_wn" target="_blank" rel="noopener"&gt;tried to restart the agent&lt;/A&gt; already. Would you mind &lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_ag_agents.html#cmug_topic_14_4__section_kmt_zxs_v4" target="_self"&gt;attempting to hard restart the agent&lt;/A&gt; to see if it transitioned into a bad state, so the restart did not work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN class="title"&gt;Warning:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;The&amp;nbsp;&lt;/SPAN&gt;hard_stop&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;hard_restart&lt;SPAN&gt;&amp;nbsp;commands kill all running managed service processes on the host(s) where the command is run."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let us know if the agent is able to read the updated configurations after a hard restart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you:&lt;BR /&gt;Ferenc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 11:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302989#M221340</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2020-09-17T11:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302991#M221341</link>
      <description>&lt;P&gt;I did it, but doesn't work.&lt;/P&gt;&lt;P&gt;idk for cloudera server - all ok, but for agents - doesn't works.&lt;/P&gt;&lt;P&gt;(example for CM admin console, for hue - looks like this too).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="photo_2020-09-17_14-42-25.jpg" style="width: 827px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28903i2002C679F17759CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="photo_2020-09-17_14-42-25.jpg" alt="photo_2020-09-17_14-42-25.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 11:53:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302991#M221341</guid>
      <dc:creator>Yuriy_but</dc:creator>
      <dc:date>2020-09-17T11:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302993#M221343</link>
      <description>&lt;P&gt;Miracle!&lt;/P&gt;&lt;P&gt;It's start work while I delete file "&lt;FONT&gt;config.ini.orig" from folder /etc/cloudera-scm/agent/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Now there only "config.ini" file.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 12:33:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302993#M221343</guid>
      <dc:creator>Yuriy_but</dc:creator>
      <dc:date>2020-09-17T12:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: cloudera agent TLS configuration</title>
      <link>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302994#M221344</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77458"&gt;@Yuriy_but&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is good to hear you found the solution and it works for you now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards:&lt;/P&gt;&lt;P&gt;Ferenc&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 12:38:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/cloudera-agent-TLS-configuration/m-p/302994#M221344</guid>
      <dc:creator>Bender</dc:creator>
      <dc:date>2020-09-17T12:38:59Z</dc:date>
    </item>
  </channel>
</rss>

