Before enabling the authentication, first you need to create a password file. The file name isn’t important. Use the following example for guidance.
Note: If you’re using an earlier JDK version than 9, then you’ll
need to specify the role in a separate jmx.access file.