I put together a simple script to install nifi to run secure. It creates 3 certs and configures NiFi to run securely. Works on Linux platforms. See http://www.silvercloudcomputing.com/nifi-tips.html
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.