Generating password hash using cfmctl

You can generate a NiFi password hash using the single-user-credentials cfmctl command.

  1. Run the singe-user-credentials command.
    bin/cfmctl single-user-credentials
  2. Enter a password when prompted.
    Enter password:
    The property and the hash value are printed to stdout:
    <property name="Password">$2b$10$FdOuiIvdvrcF3dG9YMSa3u7VPLXOLQUdLbJAMLBdeM4S6tbDMg322</property>
    Add one or the other to your loginIdentityProviders.xml override to enable single user login using the desired credentials.