Fixes #4425: generate cookie validation keys in local config files.