Update config with key

Added secret key option.