<?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: Level 1 TLS encryption for CM - Cannot make it work in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48653#M49297</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the alias to be the server name where scm server is running and I still have the same problem. Clousera management service does not start (or not communicating) and the log shows "certificate_unknown" messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the result of the find command on the scm server node:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/etc/pki/java/cacerts&lt;BR /&gt;/etc/pki/ca-trust/extracted/java/cacerts&lt;BR /&gt;/opt/cloudera/parcels/CDH-5.9.0-1.cdh5.9.0.p0.23/lib/hue/build/env/lib/python2.6/site-packages/boto-2.42.0-py2.6.egg/boto/cacerts&lt;BR /&gt;/opt/cloudera/parcels/CDH-5.6.0-1.cdh5.6.0.p0.45/lib/hue/build/env/lib/python2.6/site-packages/boto-2.38.0-py2.6.egg/boto/cacerts&lt;BR /&gt;/usr/java/jdk1.8.0_111/jre/lib/security/cacerts&lt;BR /&gt;/usr/java/jdk1.7.0_67-cloudera/jre/lib/security/cacerts&lt;BR /&gt;/usr/java/jdk1.6.0_31/jre/lib/security/cacerts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using the one under java 1.7.0_67&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2016 21:21:16 GMT</pubDate>
    <dc:creator>ni4ni</dc:creator>
    <dc:date>2016-12-19T21:21:16Z</dc:date>
    <item>
      <title>Level 1 TLS encryption for CM - Cannot make it work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48622#M49293</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a working CDH 5.9 test cluster. I want to configure level 1 TLS encryption for Cloudera manager using self signed certificate.&lt;BR /&gt;I used the official guide, then reverted to a pre-change snapshot and tried again using this guide: &lt;A href="https://united.softserveinc.com/blogs/tls-encryption-cloudera-manager" target="_blank"&gt;https://united.softserveinc.com/blogs/tls-encryption-cloudera-manager&lt;/A&gt;, but got the same result.&lt;/P&gt;&lt;P&gt;Cloudera manager UI redirects me to sttps on port 7183 as expected. I can also see that the servers are sending heartbeats.&lt;BR /&gt;The problem is that Cloudera management service components don't seem to connect. They seem down to Cloudera manager and if I try to start them I get error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The culprit seems to be activity monitor.&lt;/P&gt;&lt;P&gt;When I try to start activity monitor I get this error:&lt;/P&gt;&lt;P&gt;Failed to publish event: SimpleEvent{attributes={STACKTRACE=[javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found&lt;BR /&gt;at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)&lt;BR /&gt;at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)&lt;BR /&gt;at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)&lt;BR /&gt;at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)&lt;BR /&gt;at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)&lt;BR /&gt;at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)&lt;BR /&gt;at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)&lt;BR /&gt;at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)&lt;BR /&gt;at sun.net.&lt;A href="http://www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563" target="_blank"&gt;www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563&lt;/A&gt;)&lt;BR /&gt;at&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But I did import the cetrificate into the truststore, gave proper permisions and pointed the configuration to the truststore file, so I can't figure out what's wrong.&lt;/P&gt;&lt;P&gt;If I look at agents log I can also see a "connection refused" errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[19/Dec/2016 10:35:34 +0000] 5656 MonitorDaemon-Reporter firehoses INFO Creating a connection to the HOSTMONITOR.&lt;BR /&gt;[19/Dec/2016 10:35:34 +0000] 5656 MonitorDaemon-Reporter throttling_logger ERROR Error sending messages to firehose: mgmt-HOSTMONITOR-fbe9bdb7c0b8d1671e18298752512c5a&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.9.0-py2.6.egg/cmf/monitor/firehose.py", line 116, in _send&lt;BR /&gt;self._port)&lt;BR /&gt;File "/usr/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 469, in __init__&lt;BR /&gt;self.conn.connect()&lt;BR /&gt;File "/usr/lib64/python2.6/httplib.py", line 742, in connect&lt;BR /&gt;self.timeout)&lt;BR /&gt;File "/usr/lib64/python2.6/socket.py", line 567, in create_connection&lt;BR /&gt;raise error, msg&lt;BR /&gt;error: [Errno 111] Connection refused&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although from the CM UI I can see that last heartbeat from the servers took place 6-10secs ago.&lt;/P&gt;&lt;P&gt;If I try to perform an openssl connection check I ger: Verify return code: 18 (self signed certificate).&lt;/P&gt;&lt;P&gt;I followed the instructions thoroughly several times but it just doesnt work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I doing wrong ? Are self signed certificates really supported ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 08:52:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48622#M49293</guid>
      <dc:creator>ni4ni</dc:creator>
      <dc:date>2016-12-19T08:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Level 1 TLS encryption for CM - Cannot make it work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48648#M49294</link>
      <description>&lt;P&gt;Did you import the root certificate into the default system truststore?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 18:34:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48648#M49294</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2016-12-19T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Level 1 TLS encryption for CM - Cannot make it work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48650#M49295</link>
      <description>&lt;P&gt;I belive I did. This is the part when you run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;keytool -import -alias cms -file /tmp/selfsigned.cer -keystore&lt;/SPAN&gt;&lt;SPAN&gt;$JAVA_HOME/jre/lib/security/jssecacerts -storepass changeit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Isn't it ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did that on all the nodes in the cluster, and it said that the certificate was succesfuly added to the keystore.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 18:58:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48650#M49295</guid>
      <dc:creator>ni4ni</dc:creator>
      <dc:date>2016-12-19T18:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Level 1 TLS encryption for CM - Cannot make it work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48651#M49296</link>
      <description>&lt;P&gt;The first thing that caught my eyes is "-alias" flag. I would rather use the actual hostname for that.&lt;/P&gt;&lt;P&gt;Also, could you run this command as a root:&lt;/P&gt;&lt;PRE&gt;find /* -iname "cacerts"&lt;/PRE&gt;&lt;P&gt;and paste the output here?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 19:12:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48651#M49296</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2016-12-19T19:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Level 1 TLS encryption for CM - Cannot make it work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48653#M49297</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the alias to be the server name where scm server is running and I still have the same problem. Clousera management service does not start (or not communicating) and the log shows "certificate_unknown" messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the result of the find command on the scm server node:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/etc/pki/java/cacerts&lt;BR /&gt;/etc/pki/ca-trust/extracted/java/cacerts&lt;BR /&gt;/opt/cloudera/parcels/CDH-5.9.0-1.cdh5.9.0.p0.23/lib/hue/build/env/lib/python2.6/site-packages/boto-2.42.0-py2.6.egg/boto/cacerts&lt;BR /&gt;/opt/cloudera/parcels/CDH-5.6.0-1.cdh5.6.0.p0.45/lib/hue/build/env/lib/python2.6/site-packages/boto-2.38.0-py2.6.egg/boto/cacerts&lt;BR /&gt;/usr/java/jdk1.8.0_111/jre/lib/security/cacerts&lt;BR /&gt;/usr/java/jdk1.7.0_67-cloudera/jre/lib/security/cacerts&lt;BR /&gt;/usr/java/jdk1.6.0_31/jre/lib/security/cacerts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using the one under java 1.7.0_67&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 21:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48653#M49297</guid>
      <dc:creator>ni4ni</dc:creator>
      <dc:date>2016-12-19T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Level 1 TLS encryption for CM - Cannot make it work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48654#M49298</link>
      <description>&lt;P&gt;Please update this one as well:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/etc/pki/java/cacerts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;restart cloudera&amp;nbsp;manager service:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;service cloudera-scm-server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And paste the whole log here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, you can verify the certificate itself with:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;openssl verify certnew.cer&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 21:32:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48654#M49298</guid>
      <dc:creator>andrzej_jedrzej</dc:creator>
      <dc:date>2016-12-19T21:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Level 1 TLS encryption for CM - Cannot make it work</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48665#M49299</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that in the creation of the first keystore I did not change the CN to the appropriate value, so I had inconsistency between the keystore on the first host and on the other nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the whole process again with the appropriate CN (I had snapshots from before the change) and this time it worked !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to be sure it's not an accident I will do the whole thing again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 11:05:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Level-1-TLS-encryption-for-CM-Cannot-make-it-work/m-p/48665#M49299</guid>
      <dc:creator>ni4ni</dc:creator>
      <dc:date>2016-12-20T11:05:51Z</dc:date>
    </item>
  </channel>
</rss>

