NiFi SiteToSite HTTPS Provenance Reporting Task Issue - 401 Unauthorized
All,
I have two separate NiFi instance and I want to push provenance events from one instance to another. Source NiFi's hostname is nifi8443 and Target NiFi's hostname is nifi8444.
Both of these instances are running over HTTPS. On the "Target NiFi" I set up an input port called Test.

On source NiFi, here's what my SiteToSiteProvenanceReportingTask looks like.

Here's a couple things I did.
I realized that the reporting task on NiFi8443 is essentially acting like an client and NiFi8444 is acting as the server. I added the NiFi8444 server certificate into a truststore.p12 file on NiFi8443 and created the corresponding SSLContextService to point to that Truststore file.
I resolved the SSL issue and then I was reading on the target node (ie. NiFi8444) I had to make an identity for the full DN of the source (ie NiFi8443) certificate. So on NiFI8444, I created a new user called this - CN=nifi8443, O=NiFi Server, L=San Francisco, ST=California, C=US

Then I added that identity to two policies. The first one is retrieve-site-to-site -

And the second one is the input port -

I thought that was all the requirements however, I am currently getting this error when I start the reporting task.
SiteToSiteProvenanceReportingTask[id=d9ece17e-0192-1000-9050-2a4a5a2f9e02] Unable to refresh remote group peers due to: response code 401:Unauthorized with explanation: null
It seems like it has to do with the identity from NiFi8443 not properly being authenticated correctly. But when I run keytool -list -v -keystore nifi8443.p12 on the server certificate I get this -


