Nifi Secure Installation :-
Download nifi tool kit and nifi from nifi site .
I am using nifi-1.10.0 version .
Step 1
D:\instances\nifi-toolkit-1.10.0>.\bin\tls-toolkit.bat standalone -n localhost -C "CN=sys_admin, OU=NIFI"
Step -2
Goto localhost , copy all the files keystore,nifi and truststore into nifi-1.10.0/conf directory.
Step -3
Goto authorizers.xml file .Update in 2 places
<accessPolicyProvider>
<identifier>file-access-policy-provider</identifier>
<class>org.apache.nifi.authorization.FileAccessPolicyProvider</class>
<property name="User Group Provider">file-user-group-provider</property>
<property name="Authorizations File">./conf/authorizations.xml</property>
<property name="Initial Admin Identity">CN=sys_admin, OU=NIFI</property>
<property name="Legacy Authorized Users File"></property>
<property name="Node Identity 1"></property>
<property name="Node Group"></property>
</accessPolicyProvider>
And
<userGroupProvider>
<identifier>file-user-group-provider</identifier>
<class>org.apache.nifi.authorization.FileUserGroupProvider</class>
<property name="Users File">./conf/users.xml</property>
<property name="Legacy Authorized Users File"></property>
<property name="Initial User Identity 1">CN=sys_admin, OU=NIFI</property>
</userGroupProvider>
Step -4
Start bat file .
.\bin\run-nifi.bat
Step -5
Goto Chrome ,Settings-> search for Manage Certificates .
Import the file shown below in red .
Ask for password ,open the password file (next below the red mark) ,copy the password and paste here ,certificate import successfully .
Then goto browser ,https://localhost:9443/nifi ,able to see the login page .
For Remote Acess:-
To access we have to manage through tunnel .
Step 6:-
Copy the step-5 ,to your local browser ,do the import .
Open putty ,
Add auth key ,open tunnel and add your destination .
Goto your browser ,import key and press https://localhost:9443/nifi.

