Setup the web.conf using dhFile at 2048 encryption
dhFile = $SPLUNK_HOME\etc\auth\splunkweb\DH2048.pem
Here is the command to generate the key
After set it up, splunk web will not start without any error in the log file.
Have to add the double quote for the parameter value in dhFile
dhFile = "$SPLUNK_HOME\etc\auth\splunkweb\DH2048.pem"
Just an additional comment, if one wishes to utilize the dhFile setting in server.conf, on a windows host, Splunk may not start unless there are quotes (" ") around the setting. I added that to another post as well: