<?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: Nifi registry issue with https in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378098#M243418</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107467"&gt;@Knowledgeknow&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I would think that certs created by tiny cert should be fine.&lt;BR /&gt;Troubleshooting mutual TLS handshake this is difficult without the verbose keytool output for the NiFi keystore and truststore and the NiFi-Registry keystore and truststore.&lt;BR /&gt;&lt;BR /&gt;Your first screenshot with connection refused, you'll probably want to look at the nifi-registry-app.log at time you opened that UI to see what may have been logged.&lt;BR /&gt;&lt;BR /&gt;Can the NiFi host resolve and reach the configured Apache NiFi-Registry host?&amp;nbsp; Can this be done via the NiFi service user via command line on the NiFi host?&lt;BR /&gt;&lt;BR /&gt;Once you get past any potential MutualTLS issue, we would need to inspect the configurations you have in place within:&lt;BR /&gt;NiFi:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;nifi.properties&lt;/LI&gt;&lt;LI&gt;know what user-identity-string is currently authenticated into you secured NiFi when trying to interact with NiFi-Registry.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;NiFi-Registry:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;nifi-registry.properties&lt;/LI&gt;&lt;LI&gt;authorizers.xml&lt;/LI&gt;&lt;LI&gt;users.xml&lt;/LI&gt;&lt;LI&gt;authorizations.xml&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So there is far too little information to offer up any solution or useful suggestions.&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 15:38:39 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2023-10-24T15:38:39Z</dc:date>
    <item>
      <title>Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/377849#M243356</link>
      <description>&lt;P&gt;I have enabled https on nifi registry properties and generated key store and trust store using tls toolkit and added in the properties file. I am able to start nifi registry on port 18443 and host 0.0.0.0 as it showing in logs that jetty server started on &lt;A href="https://0.0.0.0:18443/nifi" target="_blank" rel="noopener"&gt;https://0.0.0.0:18443/nifi&lt;/A&gt; registry&lt;/P&gt;&lt;P&gt;my nifi registry is hosted as aks pod.&amp;nbsp;&lt;BR /&gt;when I enable ingress for it. It’s returning me as 502 bad request.&lt;/P&gt;&lt;P&gt;are there any changes to be done to make my nifi registry run https.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goal : i want to enable 2 way ssl authentication so that nifi could connect to nifi registry.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:58:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/377849#M243356</guid>
      <dc:creator>Knowledgeknow</dc:creator>
      <dc:date>2023-10-18T14:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/377850#M243357</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107467"&gt;@Knowledgeknow&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/103151"&gt;@cotopaul&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:02:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/377850#M243357</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-10-18T16:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378001#M243391</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107467"&gt;@Knowledgeknow&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am not clear here:&lt;BR /&gt;&lt;SPAN&gt;when I enable ingress for it. It’s returning me as 502 bad request&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;NiFi-Registry is secured once configured with an HTTPS hostname, HTTPS port, keystore, and truststore.&amp;nbsp; For more info: &lt;A href="https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#security_configuration" target="_self"&gt;security_configuration&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As soon as HTTPS is enabled, TLS/SSL is used. It is either enabled as "REQUIRED" or "WANT", but can not be set to "NONE".&amp;nbsp; &amp;nbsp;This is controlled by&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;nifi.registry.security.needClientAuth=true&lt;/STRONG&gt; &lt;/EM&gt;(default)&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;With "true" being "Required" and false being "Want"&lt;BR /&gt;&lt;BR /&gt;In order for NiFi to be able to successfully negotiate a mutual TLS handshake, the NiFi "registry client" must use the HTTPS nifi-registry "https://&amp;lt;nifi-registry hostname&amp;gt;:&amp;lt;port&amp;gt; url and have either the keystore and truststore configured in nifi.properties or a&amp;nbsp; StandardRestrictedSSLContextService configured with valid keystore and truststore.&lt;BR /&gt;&lt;BR /&gt;The NiFi-registry keystore must:&lt;BR /&gt;- Contain a single PrivateKeyEntry&lt;BR /&gt;- PrivateKey entry has serverAuth EKU&lt;BR /&gt;- PrivateKey Entry has SAN entries that include any hostname and IPs that client(s) may use to connect to it.&amp;nbsp; Since you have configured hostname with 0.0.0.0 so that NiFi-Registry binds to all NICs, you'll need to make sure valid network IPs and hostnames are in the SAN.&lt;BR /&gt;&lt;BR /&gt;The NiFi-Regsitry truststore must:&lt;BR /&gt;- Contain the complete trust chain capable of establish trust for the PriavteKey in the NiFi keystore being used by the NiFi Registry Client.&lt;BR /&gt;&lt;BR /&gt;The NiFi keystore must:&lt;BR /&gt;- Contain only one PrivateKey Entry.&lt;BR /&gt;- PrivateKey DN must not use wildcards&lt;BR /&gt;- PrivateKey Entry MUST have both clientAuth and ServerAuth EKU&lt;BR /&gt;- PrivateKey Entry must have SAN entries for NiFi hostname, and IPs clients may use to connect to it.&lt;BR /&gt;&lt;BR /&gt;The NiFi truststore must:&lt;BR /&gt;- Contain the complete trust chain capable of establish trust for the PriavteKey in the NiFi-Registry keystore configured in the nifi-registry.properties file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 21:01:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378001#M243391</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-10-20T21:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378077#M243407</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_4656.jpeg" style="width: 320px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38734iAC3EA973FFD8CBBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_4656.jpeg" alt="IMG_4656.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;now I have apache secured nifi and secured nifi registry running on local host. When I try to integrate with nifi with nifi registry it’s giving me connection refused. &amp;nbsp;I added the images how I created certificates and the error. &amp;nbsp;I added trust and key store files in nifi registry and nifi properties. I want to make 2 way ssl connection.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_4657.jpeg" style="width: 4017px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38733iF6A25F3D35AF21C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_4657.jpeg" alt="IMG_4657.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 17:02:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378077#M243407</guid>
      <dc:creator>Knowledgeknow</dc:creator>
      <dc:date>2023-10-23T17:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378088#M243412</link>
      <description>&lt;P&gt;I generated those certificates using tiny cert. Do we have any reference script which I could generate self signed certificates for nifi and nifi registry.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 06:29:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378088#M243412</guid>
      <dc:creator>Knowledgeknow</dc:creator>
      <dc:date>2023-10-24T06:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378098#M243418</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107467"&gt;@Knowledgeknow&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I would think that certs created by tiny cert should be fine.&lt;BR /&gt;Troubleshooting mutual TLS handshake this is difficult without the verbose keytool output for the NiFi keystore and truststore and the NiFi-Registry keystore and truststore.&lt;BR /&gt;&lt;BR /&gt;Your first screenshot with connection refused, you'll probably want to look at the nifi-registry-app.log at time you opened that UI to see what may have been logged.&lt;BR /&gt;&lt;BR /&gt;Can the NiFi host resolve and reach the configured Apache NiFi-Registry host?&amp;nbsp; Can this be done via the NiFi service user via command line on the NiFi host?&lt;BR /&gt;&lt;BR /&gt;Once you get past any potential MutualTLS issue, we would need to inspect the configurations you have in place within:&lt;BR /&gt;NiFi:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;nifi.properties&lt;/LI&gt;&lt;LI&gt;know what user-identity-string is currently authenticated into you secured NiFi when trying to interact with NiFi-Registry.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;NiFi-Registry:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;nifi-registry.properties&lt;/LI&gt;&lt;LI&gt;authorizers.xml&lt;/LI&gt;&lt;LI&gt;users.xml&lt;/LI&gt;&lt;LI&gt;authorizations.xml&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So there is far too little information to offer up any solution or useful suggestions.&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 15:38:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378098#M243418</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-10-24T15:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378324#M243506</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107467"&gt;@Knowledgeknow&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 05:42:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378324#M243506</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-10-31T05:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378399#M243529</link>
      <description>&lt;P&gt;Certs using tinycert is not acceptable in my organisation. I started creating ca using open ssl and server cert client certs I created a key store and imported ca into true store. When I hit throw browser it’s saying ssl issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 08:12:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378399#M243529</guid>
      <dc:creator>Knowledgeknow</dc:creator>
      <dc:date>2023-11-01T08:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378412#M243531</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107467"&gt;@Knowledgeknow&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Does your NiFi Keystore meet the following requirements?&lt;/LI&gt;&lt;/OL&gt;&lt;UL class="lia-list-style-type-square"&gt;&lt;LI&gt;MUST contain only one PriavteKey Entry&lt;/LI&gt;&lt;LI&gt;PrivateKey Entry must include ExtenedKeyUsage(EKU) for both clientAuth and serverAuth.&lt;/LI&gt;&lt;LI&gt;PrivateKey Entry DistinquishedName (DN) does not contain wildcards&lt;/LI&gt;&lt;LI&gt;PrivateKey Entry contains one of more SubjectAlternativeName (SAN) entries that includes the hostname and IP for the NiFi server on which it will be used.&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;2. Sounds like you have configured nifi.properties:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;nifi.remote.input.host=0.0.0.0&lt;/LI-CODE&gt;&lt;P class="lia-indent-padding-left-30px"&gt;While this will work for a http setup, it will cause issue with the TLS handshake.&amp;nbsp; Instead this should set the hostname of the NiFi server and the hostname must be a SAN entry.&amp;nbsp; If you are trying to have your NIFi bind to multiple Network Interface Cards (NICs) then you should use the "&lt;SPAN&gt;nifi.web.https.network.interface*" properties in &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#web-properties" target="_self"&gt;web properties&lt;/A&gt; section of the nifi.properties file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1698844519875.png" style="width: 709px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38814i0D97996A62BC50F9/image-dimensions/709x241?v=v2" width="709" height="241" role="button" title="MattWho_0-1698844519875.png" alt="MattWho_0-1698844519875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 13:17:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/378412#M243531</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-11-01T13:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/383053#M244807</link>
      <description>&lt;P&gt;how do use the toolkit to create and IP within the SAN?&lt;BR /&gt;&lt;BR /&gt;I am using the following script:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;bash &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{NIFI_HOME_DIR}&lt;SPAN&gt;"&lt;/SPAN&gt;/nifi/nifi-toolkit-current/bin/tls-toolkit.sh standalone -O -n &lt;SPAN&gt;'localhost' &lt;/SPAN&gt;-C &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{cn}&lt;SPAN&gt;" &lt;/SPAN&gt;-o &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{NIFI_HOME_DIR}&lt;SPAN&gt;"&lt;/SPAN&gt;/key_trust --subjectAlternativeNames dns:&lt;SPAN&gt;'localhost'&lt;/SPAN&gt;,ip:&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{NIFI_SAN_IP}&lt;SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;but only the DNS:localhost gets created&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Feb 2024 14:07:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/383053#M244807</guid>
      <dc:creator>oneofthemany</dc:creator>
      <dc:date>2024-02-02T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/383072#M244809</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109052"&gt;@oneofthemany&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You would get better traction form the community by starting a new question since this question already has an accepted solution and has nothing to do with NiFi TLS-toolkit usage.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 18:58:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/383072#M244809</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-02-02T18:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi registry issue with https</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/383131#M244835</link>
      <description>&lt;P&gt;thanks, I have created a new post:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/NiFi-SAN-IP-using-toolkit-NiFI-Registry/td-p/383130" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/NiFi-SAN-IP-using-toolkit-NiFI-Registry/td-p/383130&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 12:18:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-registry-issue-with-https/m-p/383131#M244835</guid>
      <dc:creator>oneofthemany</dc:creator>
      <dc:date>2024-02-05T12:18:10Z</dc:date>
    </item>
  </channel>
</rss>

