<?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: Could not generate CSR in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281666#M209510</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17435"&gt;@m4x1m1li4n&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message below seems to indicate some data for generating the certificate is exceeding the 64 characters limit.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;139727014807440:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:158:maxsize=64&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;CN in a certificate may not exceed 64 characters.&lt;/SPAN&gt;&amp;nbsp;I wonder if your host name is too long which make it exceed the limit of 64 characters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 19:24:10 GMT</pubDate>
    <dc:creator>lwang</dc:creator>
    <dc:date>2019-10-30T19:24:10Z</dc:date>
    <item>
      <title>Could not generate CSR</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281654#M209502</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question about enabling the TLS communication between the hosts in my cluster.&lt;/P&gt;
&lt;P&gt;The installation procedure recommends to enable the TLS over the cluster, but when I try to run the following command:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sudo JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera /opt/cloudera/cm-agent/bin/certmanager setup --configure-services&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I receive the following errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25097i36EFB2340F495A57/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The first warning is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;could not generate CSR&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25098i94BDD4F6CE39627A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I check the log I got two errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;req failed for /var/lib/cloudera-scm-server/certmanager/CMCA/private/ca_key.pem. Exit code: 1 Output:
problems making Certificate Request
139727014807440:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:158:maxsize=64&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have the same problem? I am struggling to figure out this issue and after having googled it I have not found much...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I skip this step, unfortunately, I will not be able to pass the&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/auto_tls.html" target="_blank" rel="noopener"&gt;Inspect Network Performance&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I already tried to skip this step, but when I was ending the installation, the file "cert.py" is used to test the connection between the nodes, and it wouldn't work (I already tried) giving me the error: unable to reach the hosts".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any case, I am able to connect through ssh command from the master to the other nodes, here an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 932px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25099iD0B5A8CCBA6686B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 17:50:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281654#M209502</guid>
      <dc:creator>m4x1m1li4n</dc:creator>
      <dc:date>2019-10-30T17:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Could not generate CSR</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281666#M209510</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17435"&gt;@m4x1m1li4n&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message below seems to indicate some data for generating the certificate is exceeding the 64 characters limit.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;139727014807440:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:158:maxsize=64&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;CN in a certificate may not exceed 64 characters.&lt;/SPAN&gt;&amp;nbsp;I wonder if your host name is too long which make it exceed the limit of 64 characters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 19:24:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281666#M209510</guid>
      <dc:creator>lwang</dc:creator>
      <dc:date>2019-10-30T19:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Could not generate CSR</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281716#M209538</link>
      <description>&lt;P&gt;Hi Li,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first, thank you so much for your answer! Very appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good spot! I registered a subdomain in my Amazon VPC and the etc/host looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 476px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25108iD3CE5A8D3B5D8A00/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Therefore, my hostname for the master is the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 339px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25109i704A4B8B25FAFE2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I re-run the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sudo JAVA_HOME=/usr/java/jdk1.8.0_181-cloudera /opt/cloudera/cm-agent/bin/certmanager --location /opt/cloudera/CMCA setup --configure-services&lt;/LI-CODE&gt;&lt;P&gt;I receive the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25110i55404BF47E7990B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I guess I should remove the key generated and re-do the command.&lt;/P&gt;&lt;P&gt;Do you know how can I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 09:16:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281716#M209538</guid>
      <dc:creator>m4x1m1li4n</dc:creator>
      <dc:date>2019-10-31T09:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Could not generate CSR</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281865#M209625</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17435"&gt;@m4x1m1li4n&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you used custom location.&amp;nbsp;You may want to take a look at the location:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="pre codeblock cdoc-input hljs"&gt;&lt;SPAN class="cdoc-line"&gt;&lt;VAR class="keyword varname"&gt;/opt/cloudera/CMCA&lt;/VAR&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;and see if there are some data inside. Try to move those files to different location and see if that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Li&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2019 18:02:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Could-not-generate-CSR/m-p/281865#M209625</guid>
      <dc:creator>lwang</dc:creator>
      <dc:date>2019-11-01T18:02:30Z</dc:date>
    </item>
  </channel>
</rss>

