Correctly generate the hex value needed for md5sigkey value. Use correct permissions for configuration file when generating