<?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: Configure SiteToSiteBulletinReportingTask in NIFI single Node in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/355973#M237171</link>
    <description>&lt;P data-unlink="true"&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101194"&gt;@D5ha&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your issue here is with the certificate being used to perform the clientAuth action.&amp;nbsp;&lt;BR /&gt;Your certificate would also not work if you had a multi-node cluster.&amp;nbsp; It is only working as single node cluster because there are no other nodes for which your single node need to communicate as a client.&lt;BR /&gt;&lt;BR /&gt;The keystore requirements for NiFi are as follows:&lt;BR /&gt;1. keystore MUST contain ONLY one PrivateKeyEntry&lt;BR /&gt;2. PrivateKeyEntry MUST have both clientAuth and ServerAuth ExtendedKeyUsage (EKU)&lt;BR /&gt;3. PrivateKeyEntry MUST have a SubjectAlternativeName (SAN) entry that matches the NiFi node's server hostname. If you are also going to be addressing your server by its IP, you should have that IP as a SAN entry as well.&amp;nbsp; Any other alternative hostname this server may be known as (meaning user type that alternate hostname in a URL to reach this host) should also be added to SAN.&lt;BR /&gt;&lt;BR /&gt;In your case, the current issue happens in the mutual TLS handshake.&amp;nbsp; You have configured your&amp;nbsp;&lt;STRONG&gt;SiteToSiteBulletinReportingTask&amp;nbsp;&lt;/STRONG&gt;to send to https://&amp;lt;some&amp;nbsp;ip&amp;gt;/nifi.&amp;nbsp; The same NiFi server receive that client hello and responds with a server hello back which includes the SAN entries.&amp;nbsp; In your case the client (reporting task) looks at that server hello and basically rejects the handshake at that point in time.&amp;nbsp; It does this because of what looks like a man-in-the-middle attack.&amp;nbsp; &amp;nbsp;The client tried to reach host &amp;lt;some ip&amp;gt; but instead a host with san &amp;lt;localhost&amp;gt; responded.&lt;BR /&gt;&lt;BR /&gt;There is no configuration change you can make in your secured NiFi to get around this.&amp;nbsp; You'll need to get a new certificate meeting that above min criteria I outlined.&amp;nbsp; You'll need t do this also if you ever intend to add more hosts to your NiFi cluster.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 14:35:39 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2022-10-24T14:35:39Z</dc:date>
    <item>
      <title>Configure SiteToSiteBulletinReportingTask in NIFI single Node</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/355939#M237165</link>
      <description>&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;I have NIFI single Node and for my learning purpose I'm trying to implement SiteToSiteBulletinReporyingTask (with assuming this will work for single node)&lt;/P&gt;&lt;P&gt;I configured&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;StandardRestrictedSSLContextService&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as below&lt;/P&gt;&lt;P&gt;Note - same&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;keystore&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;truststore&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;used inside nifi-properties&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="D5ha_2-1666589517351.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36014i733AA48D2EE04557/image-size/medium?v=v2&amp;amp;px=400" role="button" title="D5ha_2-1666589517351.png" alt="D5ha_2-1666589517351.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;SiteToSiteBulletinReportingTask&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as below&lt;/P&gt;&lt;P&gt;Note - the destination URL is the same URL that nifi is currently running.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="D5ha_3-1666589530536.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36015i8D332975674E20DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="D5ha_3-1666589530536.png" alt="D5ha_3-1666589530536.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm facing below issues -&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;I'm not receiving any data to the bulletin port. I'm getting the&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;below warning message in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;nifi-app.log&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(couldn't find resource to fix this)&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The issue is I'm getting the below warning and, to be honest, I don't have a clear idea about this warning, and also&lt;/P&gt;&lt;PRE&gt;2022-10-23 17:57:09,618 WARN [NiFi Site-to-Site Connection Pool Maintenance] o.apache.nifi.remote.client.PeerSelector Unable to refresh remote group peers due to: Certificate for &amp;lt;xxx.xxx.xx.xxx&amp;gt; doesn't match any of the subject alternative names: [localhost]

2022-10-23 17:57:09,618 WARN [NiFi Site-to-Site Connection Pool Maintenance] o.a.n.r.SiteToSiteBulletinReportingTask SiteToSiteBulletinReportingTask[id=105311a0-1473-1059-2fb8-ea483b8d9fa8] Unable to refresh remote group peers due to: Certificate for &amp;lt;xxx.xxx.xx.xxx&amp;gt; doesn't match any of the subject alternative names: [localhost]&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="mt24 mb12"&gt;&lt;DIV class="post-taglist d-flex gs4 gsy fd-column"&gt;&lt;DIV class="d-flex ps-relative fw-wrap"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Oct 2022 05:32:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/355939#M237165</guid>
      <dc:creator>D5ha</dc:creator>
      <dc:date>2022-10-24T05:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Configure SiteToSiteBulletinReportingTask in NIFI single Node</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/355973#M237171</link>
      <description>&lt;P data-unlink="true"&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101194"&gt;@D5ha&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your issue here is with the certificate being used to perform the clientAuth action.&amp;nbsp;&lt;BR /&gt;Your certificate would also not work if you had a multi-node cluster.&amp;nbsp; It is only working as single node cluster because there are no other nodes for which your single node need to communicate as a client.&lt;BR /&gt;&lt;BR /&gt;The keystore requirements for NiFi are as follows:&lt;BR /&gt;1. keystore MUST contain ONLY one PrivateKeyEntry&lt;BR /&gt;2. PrivateKeyEntry MUST have both clientAuth and ServerAuth ExtendedKeyUsage (EKU)&lt;BR /&gt;3. PrivateKeyEntry MUST have a SubjectAlternativeName (SAN) entry that matches the NiFi node's server hostname. If you are also going to be addressing your server by its IP, you should have that IP as a SAN entry as well.&amp;nbsp; Any other alternative hostname this server may be known as (meaning user type that alternate hostname in a URL to reach this host) should also be added to SAN.&lt;BR /&gt;&lt;BR /&gt;In your case, the current issue happens in the mutual TLS handshake.&amp;nbsp; You have configured your&amp;nbsp;&lt;STRONG&gt;SiteToSiteBulletinReportingTask&amp;nbsp;&lt;/STRONG&gt;to send to https://&amp;lt;some&amp;nbsp;ip&amp;gt;/nifi.&amp;nbsp; The same NiFi server receive that client hello and responds with a server hello back which includes the SAN entries.&amp;nbsp; In your case the client (reporting task) looks at that server hello and basically rejects the handshake at that point in time.&amp;nbsp; It does this because of what looks like a man-in-the-middle attack.&amp;nbsp; &amp;nbsp;The client tried to reach host &amp;lt;some ip&amp;gt; but instead a host with san &amp;lt;localhost&amp;gt; responded.&lt;BR /&gt;&lt;BR /&gt;There is no configuration change you can make in your secured NiFi to get around this.&amp;nbsp; You'll need to get a new certificate meeting that above min criteria I outlined.&amp;nbsp; You'll need t do this also if you ever intend to add more hosts to your NiFi cluster.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 14:35:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/355973#M237171</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-10-24T14:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Configure SiteToSiteBulletinReportingTask in NIFI single Node</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/357035#M237442</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103"&gt;@Matt&lt;/a&gt; It would be great if you could share some guides or documents to generate the certificate and do the above configuration&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 13:46:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/357035#M237442</guid>
      <dc:creator>D5ha</dc:creator>
      <dc:date>2022-11-06T13:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Configure SiteToSiteBulletinReportingTask in NIFI single Node</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/357228#M237512</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101194"&gt;@D5ha&lt;/a&gt;&amp;nbsp; &amp;nbsp;Your issue is a mutual TLS handshake issue and really has nothing specific to do with NiFi itself.&amp;nbsp; There are a lot of resources on the web for creating certificates.&amp;nbsp; There are even free services like &lt;A href="https://www.tinycert.org/" target="_self"&gt;Tinycert&lt;/A&gt;&amp;nbsp;you can use to generate valid certificate meeting the requirements I shared in my last response.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Providing guidance on how to create certificates does not make much sense since it can be done so many ways:&lt;BR /&gt;- Self-signed&lt;BR /&gt;- public CA&lt;BR /&gt;- Corporate/private CA&lt;BR /&gt;etc.&lt;BR /&gt;&lt;BR /&gt;Your current shared TLS exception is telling you that the IP or Hostname (you have BLUE line through it in yoru image) was not found as a Subject Alternative Name (SAN) in the certificate created for the server side of this handshake which in yoru case happens to also be your NiFi instance.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The Site-To-Site-Bulletin-Reporting-Task is acting as the client in this Mutual TLS handshake and the NiFi server S2S destination URL is the server side of this TLS handshake.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 19:55:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configure-SiteToSiteBulletinReportingTask-in-NIFI-single/m-p/357228#M237512</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-11-08T19:55:53Z</dc:date>
    </item>
  </channel>
</rss>

